Apache DataFusion SQL Query Engine
ARROW-8064: [Dev] Implement Comment bot via Github actions
Krisztián Szűcs57b7b24a6a8a
diff --git a/.dockerignore b/.dockerignoreindex 26ff244917..d76d1c56b9 100644--- a/.dockerignore+++ b/.dockerignore@@ -27,6 +27,7 @@# include explicitly!ci/**!c_glib/Gemfile+!dev/archery/requirements*.txt!python/requirements*.txt!python/manylinux1/**!python/manylinux2010/**diff --git a/.github/workflows/archery.yml b/.github/workflows/archery.ymlnew file mode 100644index 0000000000..8e60239042--- /dev/null+++ b/.github/workflows/archery.yml@@ -0,0 +1,49 @@+# Licensed to the Apache Software Foundation (ASF) under one+# or more contributor license agreements. See the NOTICE file+# distributed with this work for additional information+# regarding copyright ownership. The ASF licenses this file+# to you under the Apache License, Version 2.0 (the+# "License"); you may not use this file except in compliance+# with the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing,+# software distributed under the License is distributed on an+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+# KIND, either express or implied. See the License for the+# specific language governing permissions and limitations+# under the License.++name: Archery++on:+ push:+ paths:+ - '.github/workflows/archery.yml'+ - 'dev/archery/**'+ pull_request:+ paths:+ - '.github/workflows/archery.yml'+ - 'dev/archery/**'++jobs:++ archery:+ name: Archery Unittests+ runs-on: ubuntu-latest+ steps:+ - name: Checkout Arrow+ uses: actions/checkout@v1+ with:+ submodules: true+ - name: Setup Python+ uses: actions/setup-python@v1+ with:+ python-version: '3.7'+ - name: Install+ working-directory: dev/archery+ run: pip install pytest responses ruamel.yaml -e .+ - name: Test+ working-directory: dev/archery+ run: pytest -v archery\ No newline at end of filediff --git a/.github/workflows/comment_bot.yml b/.github/workflows/comment_bot.ymlnew file mode 100644index 0000000000..4b473287f0--- /dev/null+++ b/.github/workflows/comment_bot.yml@@ -0,0 +1,62 @@+# Licensed to the Apache Software Foundation (ASF) under one+# or more contributor license agreements. See the NOTICE file+# distributed with this work for additional information+# regarding copyright ownership. The ASF licenses this file+# to you under the Apache License, Version 2.0 (the+# "License"); you may not use this file except in compliance+# with the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing,+# software distributed under the License is distributed on an+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+# KIND, either express or implied. See the License for the+# specific language governing permissions and limitations+# under the License.++name: Comment Bot++on:+ # TODO(kszucs): support pull_request_review_comment+ issue_comment:+ types:+ - created+ - edited++jobs:++ debug:+ name: Debug+ runs-on: ubuntu-latest+ steps:+ - name: Checkout Arrow+ uses: actions/checkout@v2+ with:+ path: arrow+ # in order to generate version number based on git we need the tags+ # fetched but checkout@v2 doesn't do that by default+ - name: Featch Arrow tags+ working-directory: arrow+ run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*+ # because libgit2 is a dependency of crossbow so prefer conda+ - name: Setup Conda+ uses: s-weigand/setup-conda@v1+ with:+ update-conda: true+ python-version: 3.7+ conda-channels: conda-forge+ - name: Instal Archery and Crossbow dependencies+ run: |+ conda install -y --file arrow/ci/conda_env_crossbow.txt pygithub+ pip install -e arrow/dev/archery+ - name: Handle Github comment event+ env:+ ARROW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN }}+ run: |+ archery trigger-bot \+ --event-name ${{ github.event_name }} \+ --event-payload ${{ github.event_path }}++diff --git a/LICENSE.txt b/LICENSE.txtindex e09307b55f..a078f5e6b8 100644--- a/LICENSE.txt+++ b/LICENSE.txt@@ -967,6 +967,36 @@ OR OTHER DEALINGS IN THE SOFTWARE.--------------------------------------------------------------------------------+The projects includes code from the Ursabot project under the dev/archery+directory.++License: BSD 2-Clause++Copyright 2019 RStudio, Inc.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are met:++1. Redistributions of source code must retain the above copyright notice, this+ list of conditions and the following disclaimer.++2. Redistributions in binary form must reproduce the above copyright notice,+ this list of conditions and the following disclaimer in the documentation+ and/or other materials provided with the distribution.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.++--------------------------------------------------------------------------------+This project include code from CMake.* cpp/cmake_modules/FindGTest.cmake is based on code from CMake.diff --git a/ci/conda_env_archery.yml b/ci/conda_env_archery.ymlnew file mode 100644index 0000000000..3eb8003e27--- /dev/null+++ b/ci/conda_env_archery.yml@@ -0,0 +1,20 @@+# Licensed to the Apache Software Foundation (ASF) under one+# or more contributor license agreements. See the NOTICE file+# distributed with this work for additional information+# regarding copyright ownership. The ASF licenses this file+# to you under the Apache License, Version 2.0 (the+# "License"); you may not use this file except in compliance+# with the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing,+# software distributed under the License is distributed on an+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+# KIND, either express or implied. See the License for the+# specific language governing permissions and limitations+# under the License.++click+pygithub+ruamel.yamldiff --git a/ci/docker/conda-integration.dockerfile b/ci/docker/conda-integration.dockerfileindex ee970b6b22..5672cb8def 100644--- a/ci/docker/conda-integration.dockerfile+++ b/ci/docker/conda-integration.dockerfile@@ -25,7 +25,9 @@ ARG node=11ARG jdk=8ARG go=1.12+COPY ci/conda_env_archery.yml /arrow/ci/RUN conda install -q \+ --file arrow/ci/conda_env_archery.yml \numpy \maven=${maven} \nodejs=${node} \diff --git a/ci/docker/linux-apt-lint.dockerfile b/ci/docker/linux-apt-lint.dockerfileindex 205500ac2c..d3c97cbc93 100644--- a/ci/docker/linux-apt-lint.dockerfile+++ b/ci/docker/linux-apt-lint.dockerfile@@ -55,7 +55,13 @@ RUN rustup install ${rust} && \# Use python3 by default in scriptsRUN ln -s /usr/bin/python3 /usr/local/bin/python && \ln -s /usr/bin/pip3 /usr/local/bin/pip-RUN pip install flake8 cmake_format==0.5.2 click++COPY dev/archery/requirements.txt \+ dev/archery/requirements-lint.txt \+ /arrow/dev/archery/+RUN pip install \+ -r arrow/dev/archery/requirements.txt \+ -r arrow/dev/archery/requirements-lint.txtENV LC_ALL=C.UTF-8 \LANG=C.UTF-8diff --git a/dev/archery/archery/bot.py b/dev/archery/archery/bot.pynew file mode 100644index 0000000000..29204ae791--- /dev/null+++ b/dev/archery/archery/bot.py@@ -0,0 +1,286 @@+# Licensed to the Apache Software Foundation (ASF) under one+# or more contributor license agreements. See the NOTICE file+# distributed with this work for additional information+# regarding copyright ownership. The ASF licenses this file+# to you under the Apache License, Version 2.0 (the+# "License"); you may not use this file except in compliance+# with the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing,+# software distributed under the License is distributed on an+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+# KIND, either express or implied. See the License for the+# specific language governing permissions and limitations+# under the License.++import operator+import shlex+from pathlib import Path+from functools import partial++import click+import github+from ruamel.yaml import YAML++from .utils.crossbow import Crossbow+from .utils.git import Git+++class EventError(Exception):+ pass+++class CommandError(Exception):++ def __init__(self, message):+ self.message = message+++class _CommandMixin:++ def get_help_option(self, ctx):+ def show_help(ctx, param, value):+ if value and not ctx.resilient_parsing:+ raise click.UsageError(ctx.get_help())+ option = super().get_help_option(ctx)+ option.callback = show_help+ return option++ def __call__(self, message, **kwargs):+ args = shlex.split(message)+ try:+ with self.make_context(self.name, args=args, obj=kwargs) as ctx:+ return self.invoke(ctx)+ except click.ClickException as e:+ raise CommandError(e.format_message())+++class Command(_CommandMixin, click.Command):+ pass+++class Group(_CommandMixin, click.Group):++ def command(self, *args, **kwargs):+ kwargs.setdefault('cls', Command)+ return super().command(*args, **kwargs)++ def group(self, *args, **kwargs):+ kwargs.setdefault('cls', Group)+ return super().group(*args, **kwargs)++ def parse_args(self, ctx, args):+ if not args and self.no_args_is_help and not ctx.resilient_parsing:+ raise click.UsageError(ctx.get_help())+ return super().parse_args(ctx, args)+++command = partial(click.command, cls=Command)+group = partial(click.group, cls=Group)+++class CrossbowCommentFormatter:++ _markdown_badge = '[]({url})'++ badges = {+ 'github': _markdown_badge.format(+ title='Github Actions',+ url='https://github.com/{repo}/actions?query=branch:{branch}',+ badge=(+ 'https://github.com/{repo}/workflows/Crossbow/'+ 'badge.svg?branch={branch}'+ ),+ ),+ 'azure': _markdown_badge.format(+ title='Azure',+ url=(+ 'https://dev.azure.com/{repo}/_build/latest'+ '?definitionId=1&branchName={branch}'+ ),+ badge=(+ 'https://dev.azure.com/{repo}/_apis/build/status/'+ '{repo_dotted}?branchName={branch}'+ )+ ),+ 'travis': _markdown_badge.format(+ title='TravisCI',+ url='https://travis-ci.org/{repo}/branches',+ badge='https://img.shields.io/travis/{repo}/{branch}.svg'+ ),+ 'circle': _markdown_badge.format(+ title='CircleCI',+ url='https://circleci.com/gh/{repo}/tree/{branch}',+ badge=(+ 'https://img.shields.io/circleci/build/github'+ '/{repo}/{branch}.svg'+ )+ ),+ 'appveyor': _markdown_badge.format(+ title='Appveyor',+ url='https://ci.appveyor.com/project/{repo}/history',+ badge='https://img.shields.io/appveyor/ci/{repo}/{branch}.svg'+ )+ }++ def __init__(self, crossbow_repo):+ self.crossbow_repo = crossbow_repo++ def render(self, job):+ url = 'https://github.com/{repo}/branches/all?query={branch}'+ sha = job['target']['head']++ msg = f'Revision: {sha}\n\n'+ msg += f'Submitted crossbow builds: [{{repo}} @ {{branch}}]({url})\n'+ msg += '\n|Task|Status|\n|----|------|'++ tasks = sorted(job['tasks'].items(), key=operator.itemgetter(0))+ for key, task in tasks:+ branch = task['branch']++ try:+ template = self.badges[task['ci']]+ badge = template.format(+ repo=self.crossbow_repo,+ repo_dotted=self.crossbow_repo.replace('/', '.'),+ branch=branch+ )+ except KeyError:+ badge = 'unsupported CI service `{}`'.format(task['ci'])++ msg += f'\n|{key}|{badge}|'++ return msg.format(repo=self.crossbow_repo, branch=job['branch'])+++class CommentBot:++ def __init__(self, name, handler, token=None):+ # TODO(kszucs): validate+ assert isinstance(name, str)+ assert callable(handler)+ self.name = name+ self.handler = handler+ self.github = github.Github(token)++ def parse_command(self, payload):+ # only allow users of apache org to submit commands, for more see+ # https://developer.github.com/v4/enum/commentauthorassociation/+ allowed_roles = {'OWNER', 'MEMBER', 'CONTRIBUTOR'}+ mention = f'@{self.name}'+ comment = payload['comment']++ if payload['sender']['login'] == self.name:+ raise EventError("Don't respond to itself")+ elif payload['action'] not in {'created', 'edited'}:+ raise EventError("Don't respond to comment deletion")+ elif comment['author_association'] not in allowed_roles:+ raise EventError(+ "Don't respond to comments from non-authorized users"+ )+ elif not comment['body'].lstrip().startswith(mention):+ raise EventError("The bot is not mentioned")++ return payload['comment']['body'].split(mention)[-1].strip()++ def handle(self, event, payload):+ try:+ command = self.parse_command(payload)+ except EventError as e:+ print(e)+ # TODO(kszucs): log+ # see the possible reasons in the validate method+ return++ if event == 'issue_comment':+ return self.handle_issue_comment(command, payload)+ elif event == 'pull_request_review_comment':+ return self.handle_review_comment(command, payload)+ else:+ raise ValueError("Unexpected event type {}".format(event))++ def handle_issue_comment(self, command, payload):+ repo = self.github.get_repo(payload['repository']['id'], lazy=True)+ issue = repo.get_issue(payload['issue']['number'])++ try:+ pull = issue.as_pull_request()+ except github.GithubException:+ return issue.create_comment(+ "The comment bot only listens to pull request comments!"+ )++ comment = pull.get_issue_comment(payload['comment']['id'])+ try:+ self.handler(command, issue=issue, pull=pull, comment=comment)+ except CommandError as e:+ # TODO(kszucs): log+ print(e)+ pull.create_issue_comment("```\n{}\n```".format(e.message))+ except Exception as e:+ # TODO(kszucs): log+ print(e)+ comment.create_reaction('-1')+ else:+ comment.create_reaction('+1')++ def handle_review_comment(self, payload):+ raise NotImplementedError()+++@group(name='@github-actions')[email protected]_context+def actions(ctx):+ """Ursabot"""+ ctx.ensure_object(dict)++[email protected]('--crossbow', '-c', default='ursa-labs/crossbow',+ help='Crossbow repository on github to use')+def crossbow(obj, crossbow):+ """Trigger crossbow builds for this pull request"""+ obj['crossbow_repo'] = crossbow++[email protected]('task', nargs=-1, required=False)[email protected]('--group', '-g', multiple=True,+ help='Submit task groups as defined in tests.yml')[email protected]('--dry-run/--push', default=False,+ help='Just display the new changelog, don\'t write it')+def submit(obj, task, group, dry_run):+ """Submit crossbow testing tasks.++ See groups defined in arrow/dev/tasks/tests.yml+ """+ args = []+ for g in group:+ args.extend(['-g', g])+ for t in task:+ args.append(t)++ # clone crossbow+ git = Git()+ git.clone('https://github.com/{}'.format(obj['crossbow_repo']), 'crossbow')++ # submit the crossbow tasks+ result = Path('result.yml').resolve()+ xbow = Crossbow('arrow/dev/tasks/crossbow.py')+ xbow.run('--output-file', str(result), 'submit', *args)++ # parse the result yml describing the submitted job+ yaml = YAML()+ with result.open() as fp:+ job = yaml.load(fp)++ # render the response comment's content+ formatter = CrossbowCommentFormatter(obj['crossbow_repo'])+ response = formatter.render(job)++ # send the response+ obj['pull'].create_issue_comment(response)diff --git a/dev/archery/archery/cli.py b/dev/archery/archery/cli.pyindex 1f34e1de78..60441cc278 100644--- a/dev/archery/archery/cli.py+++ b/dev/archery/archery/cli.py@@ -32,6 +32,7 @@ from .utils.lint import linter, python_numpydoc, LintValidationExceptionfrom .utils.logger import logger, ctx as log_ctxfrom .utils.source import ArrowSourcesfrom .utils.tmpdir import tmpdir+from .bot import CommentBot, actions# Set default logging to INFO in command line.logging.basicConfig(level=logging.INFO)@@ -588,5 +589,20 @@ def integration(with_all=False, random_seed=12345, **args):run_all_tests(**args)[email protected]('--event-name', '-n', required=True)[email protected]('--event-payload', '-p', type=click.File('r', encoding='utf8'),+ default='-', required=True)[email protected]('--arrow-token', envvar='ARROW_GITHUB_TOKEN',+ help='OAuth token for responding comment in the arrow repo')[email protected]('--crossbow-token', '-ct', envvar='CROSSBOW_GITHUB_TOKEN',+ help='OAuth token for pushing to the crossow repository')+def trigger_bot(event_name, event_payload, arrow_token, crossbow_token):+ event_payload = json.loads(event_payload.read())++ bot = CommentBot(name='github-actions', handler=actions, token=arrow_token)+ bot.handle(event_name, event_payload)++if __name__ == "__main__":archery(obj={})diff --git a/dev/archery/archery/lang/python.py b/dev/archery/archery/lang/python.pyindex 521e9bb71a..4626364e7d 100644--- a/dev/archery/archery/lang/python.py+++ b/dev/archery/archery/lang/python.py@@ -63,7 +63,6 @@ def _convert_typehint(tokens):# are not supported by _signature_fromstryield (names[1].type, names[1].string)elif len(names) > 2:- print(names)raise ValueError('More than two NAME tokens follow each other')names = []yield (token.type, token.string)diff --git a/dev/archery/archery/tests/fixtures/archery-benchmark-diff-empty-lines.jsonl b/dev/archery/archery/tests/fixtures/archery-benchmark-diff-empty-lines.jsonlnew file mode 100644index 0000000000..5854eb75c9--- /dev/null+++ b/dev/archery/archery/tests/fixtures/archery-benchmark-diff-empty-lines.jsonl@@ -0,0 +1,6 @@+{"benchmark": "RegressionSumKernel/32768/10", "change": 0.0046756468886368545, "regression": false, "baseline": 13265442258.099466, "contender": 13327466781.91994, "unit": "bytes_per_second", "less_is_better": false, "suite": "arrow-compute-aggregate-benchmark"}+{"benchmark": "RegressionSumKernel/32768/1", "change": 0.0025108399115900733, "regression": false, "baseline": 15181891659.539782, "contender": 15220010959.05199, "unit": "bytes_per_second", "less_is_better": false, "suite": "arrow-compute-aggregate-benchmark"}++{"benchmark": "RegressionSumKernel/32768/50", "change": 0.00346735806287155, "regression": false, "baseline": 11471825667.817123, "contender": 11511602595.042286, "unit": "bytes_per_second", "less_is_better": false, "suite": "arrow-compute-aggregate-benchmark"}++{"benchmark": "RegressionSumKernel/32768/0", "change": 0.010140954727954987, "regression": false, "baseline": 18316987019.994465, "contender": 18502738756.116768, "unit": "bytes_per_second", "less_is_better": false, "suite": "arrow-compute-aggregate-benchmark"}diff --git a/dev/archery/archery/tests/fixtures/archery-benchmark-diff.jsonl b/dev/archery/archery/tests/fixtures/archery-benchmark-diff.jsonlnew file mode 100644index 0000000000..1e25810d77--- /dev/null+++ b/dev/archery/archery/tests/fixtures/archery-benchmark-diff.jsonl@@ -0,0 +1,4 @@+{"benchmark":"RegressionSumKernel/32768/50","change":-0.001550846227215492,"regression":false,"baseline":19241207435.428757,"contender":19211367281.47045,"unit":"bytes_per_second","less_is_better":false,"suite":"arrow-compute-aggregate-benchmark"}+{"benchmark":"RegressionSumKernel/32768/1","change":0.0020681767923465765,"regression":true,"baseline":24823170673.777943,"contender":24771831968.277977,"unit":"bytes_per_second","less_is_better":false,"suite":"arrow-compute-aggregate-benchmark"}+{"benchmark":"RegressionSumKernel/32768/10","change":0.0033323376378746905,"regression":false,"baseline":21902707565.968014,"contender":21975694782.76145,"unit":"bytes_per_second","less_is_better":false,"suite":"arrow-compute-aggregate-benchmark"}+{"benchmark":"RegressionSumKernel/32768/0","change":-0.004918126090954414,"regression":true,"baseline":27685006611.446762,"contender":27821164964.790764,"unit":"bytes_per_second","less_is_better":false,"suite":"arrow-compute-aggregate-benchmark"}diff --git a/dev/archery/archery/tests/fixtures/crossbow-job.yaml b/dev/archery/archery/tests/fixtures/crossbow-job.yamlnew file mode 100644index 0000000000..c37c7b553a--- /dev/null+++ b/dev/archery/archery/tests/fixtures/crossbow-job.yaml@@ -0,0 +1,51 @@+!Job+target: !Target+ head: f766a1d615dd1b7ee706d05102e579195951a61c+ email: unkown+ branch: refs/pull/4435/merge+ remote: https://github.com/apache/arrow+ version: 0.13.0.dev306+ no_rc_version: 0.13.0.dev306+tasks:+ docker-cpp-cmake32: !Task+ ci: circle+ platform: linux+ template: docker-tests/circle.linux.yml+ artifacts: []+ params:+ commands:+ - docker-compose build cpp-cmake32+ - docker-compose run cpp-cmake32+ branch: ursabot-1-circle-docker-cpp-cmake32+ commit: a56b077c8d1b891a7935048e5672bf6fc07599ec+ wheel-osx-cp37m: !Task+ ci: travis+ platform: osx+ template: python-wheels/travis.osx.yml+ artifacts:+ - pyarrow-0.13.0.dev306-cp37-cp37m-macosx_10_6_intel.whl+ params:+ python_version: 3.7+ branch: ursabot-1-travis-wheel-osx-cp37m+ commit: a56b077c8d1b891a7935048e5672bf6fc07599ec+ wheel-osx-cp36m: !Task+ ci: travis+ platform: osx+ template: python-wheels/travis.osx.yml+ artifacts:+ - pyarrow-0.13.0.dev306-cp36-cp36m-macosx_10_6_intel.whl+ params:+ python_version: 3.6+ branch: ursabot-1-travis-wheel-osx-cp36m+ commit: a56b077c8d1b891a7935048e5672bf6fc07599ec+ wheel-win-cp36m: !Task+ ci: appveyor+ platform: win+ template: python-wheels/appveyor.yml+ artifacts:+ - pyarrow-0.13.0.dev306-cp36-cp36m-win_amd64.whl+ params:+ python_version: 3.6+ branch: ursabot-1-appveyor-wheel-win-cp36m+ commit: a56b077c8d1b891a7935048e5672bf6fc07599ec+branch: ursabot-1diff --git a/dev/archery/archery/tests/fixtures/crossbow-success-message.md b/dev/archery/archery/tests/fixtures/crossbow-success-message.mdnew file mode 100644index 0000000000..e45c14695d--- /dev/null+++ b/dev/archery/archery/tests/fixtures/crossbow-success-message.md@@ -0,0 +1,10 @@+Revision: {revision}++Submitted crossbow builds: [{repo} @ {branch}](https://github.com/{repo}/branches/all?query={branch})++|Task|Status|+|----|------|+|docker-cpp-cmake32|[](https://circleci.com/gh/{repo}/tree/{branch}-circle-docker-cpp-cmake32)|+|wheel-osx-cp36m|[](https://travis-ci.org/{repo}/branches)|+|wheel-osx-cp37m|[](https://travis-ci.org/{repo}/branches)|+|wheel-win-cp36m|[](https://ci.appveyor.com/project/{repo}/history)|diff --git a/dev/archery/archery/tests/fixtures/event-issue-comment-build-command.json b/dev/archery/archery/tests/fixtures/event-issue-comment-build-command.jsonnew file mode 100644index 0000000000..d591105f07--- /dev/null+++ b/dev/archery/archery/tests/fixtures/event-issue-comment-build-command.json@@ -0,0 +1,212 @@+{+ "action": "created",+ "comment": {+ "author_association": "MEMBER",+ "body": "@ursabot build",+ "created_at": "2019-04-05T11:55:43Z",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480248726",+ "id": 480248726,+ "issue_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "node_id": "MDEyOklzc3VlQ29tbWVudDQ4MDI0ODcyNg==",+ "updated_at": "2019-04-05T11:55:43Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480248726",+ "user": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+ },+ "issue": {+ "assignee": null,+ "assignees": [],+ "author_association": "MEMBER",+ "body": "",+ "closed_at": null,+ "comments": 3,+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments",+ "created_at": "2019-04-05T11:22:15Z",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/events",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "id": 429706959,+ "labels": [],+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}",+ "locked": false,+ "milestone": null,+ "node_id": "MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy",+ "number": 26,+ "pull_request": {+ "diff_url": "https://github.com/ursa-labs/ursabot/pull/26.diff",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "patch_url": "https://github.com/ursa-labs/ursabot/pull/26.patch",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26"+ },+ "repository_url": "https://api.github.com/repos/ursa-labs/ursabot",+ "state": "open",+ "title": "Unittests for GithubHook",+ "updated_at": "2019-04-05T11:55:43Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "user": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+ },+ "organization": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "description": "Innovation lab for open source data science tools, powered by Apache Arrow",+ "events_url": "https://api.github.com/orgs/ursa-labs/events",+ "hooks_url": "https://api.github.com/orgs/ursa-labs/hooks",+ "id": 46514972,+ "issues_url": "https://api.github.com/orgs/ursa-labs/issues",+ "login": "ursa-labs",+ "members_url": "https://api.github.com/orgs/ursa-labs/members{/member}",+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "public_members_url": "https://api.github.com/orgs/ursa-labs/public_members{/member}",+ "repos_url": "https://api.github.com/orgs/ursa-labs/repos",+ "url": "https://api.github.com/orgs/ursa-labs"+ },+ "repository": {+ "archive_url": "https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}",+ "archived": false,+ "assignees_url": "https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}",+ "blobs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}",+ "branches_url": "https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}",+ "clone_url": "https://github.com/ursa-labs/ursabot.git",+ "collaborators_url": "https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/comments{/number}",+ "commits_url": "https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}",+ "compare_url": "https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}",+ "contributors_url": "https://api.github.com/repos/ursa-labs/ursabot/contributors",+ "created_at": "2019-02-04T15:40:31Z",+ "default_branch": "master",+ "deployments_url": "https://api.github.com/repos/ursa-labs/ursabot/deployments",+ "description": null,+ "disabled": false,+ "downloads_url": "https://api.github.com/repos/ursa-labs/ursabot/downloads",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/events",+ "fork": false,+ "forks": 0,+ "forks_count": 0,+ "forks_url": "https://api.github.com/repos/ursa-labs/ursabot/forks",+ "full_name": "ursa-labs/ursabot",+ "git_commits_url": "https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}",+ "git_refs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}",+ "git_tags_url": "https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}",+ "git_url": "git://github.com/ursa-labs/ursabot.git",+ "has_downloads": true,+ "has_issues": true,+ "has_pages": false,+ "has_projects": true,+ "has_wiki": true,+ "homepage": null,+ "hooks_url": "https://api.github.com/repos/ursa-labs/ursabot/hooks",+ "html_url": "https://github.com/ursa-labs/ursabot",+ "id": 169101701,+ "issue_comment_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}",+ "issue_events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}",+ "issues_url": "https://api.github.com/repos/ursa-labs/ursabot/issues{/number}",+ "keys_url": "https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}",+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/labels{/name}",+ "language": "Jupyter Notebook",+ "languages_url": "https://api.github.com/repos/ursa-labs/ursabot/languages",+ "license": null,+ "merges_url": "https://api.github.com/repos/ursa-labs/ursabot/merges",+ "milestones_url": "https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}",+ "mirror_url": null,+ "name": "ursabot",+ "node_id": "MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=",+ "notifications_url": "https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}",+ "open_issues": 19,+ "open_issues_count": 19,+ "owner": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/ursa-labs",+ "id": 46514972,+ "login": "ursa-labs",+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "type": "Organization",+ "url": "https://api.github.com/users/ursa-labs"+ },+ "private": false,+ "pulls_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}",+ "pushed_at": "2019-04-05T11:22:16Z",+ "releases_url": "https://api.github.com/repos/ursa-labs/ursabot/releases{/id}",+ "size": 892,+ "ssh_url": "[email protected]:ursa-labs/ursabot.git",+ "stargazers_count": 1,+ "stargazers_url": "https://api.github.com/repos/ursa-labs/ursabot/stargazers",+ "statuses_url": "https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}",+ "subscribers_url": "https://api.github.com/repos/ursa-labs/ursabot/subscribers",+ "subscription_url": "https://api.github.com/repos/ursa-labs/ursabot/subscription",+ "svn_url": "https://github.com/ursa-labs/ursabot",+ "tags_url": "https://api.github.com/repos/ursa-labs/ursabot/tags",+ "teams_url": "https://api.github.com/repos/ursa-labs/ursabot/teams",+ "trees_url": "https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}",+ "updated_at": "2019-04-04T17:49:10Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot",+ "watchers": 1,+ "watchers_count": 1+ },+ "sender": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+}\ No newline at end of filediff --git a/dev/archery/archery/tests/fixtures/event-issue-comment-by-non-authorized-user.json b/dev/archery/archery/tests/fixtures/event-issue-comment-by-non-authorized-user.jsonnew file mode 100644index 0000000000..5a8f3461c0--- /dev/null+++ b/dev/archery/archery/tests/fixtures/event-issue-comment-by-non-authorized-user.json@@ -0,0 +1,212 @@+{+ "action": "created",+ "comment": {+ "author_association": "NONE",+ "body": "Unknown command \"\"",+ "created_at": "2019-04-05T11:35:47Z",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480243815",+ "id": 480243815,+ "issue_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "node_id": "MDEyOklzc3VlQ29tbWVudDQ4MDI0MzgxNQ==",+ "updated_at": "2019-04-05T11:35:47Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480243815",+ "user": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/49275095?v=4",+ "events_url": "https://api.github.com/users/ursabot/events{/privacy}",+ "followers_url": "https://api.github.com/users/ursabot/followers",+ "following_url": "https://api.github.com/users/ursabot/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursabot/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/ursabot",+ "id": 49275095,+ "login": "someone",+ "node_id": "MDQ6VXNlcjQ5Mjc1MDk1",+ "organizations_url": "https://api.github.com/users/ursabot/orgs",+ "received_events_url": "https://api.github.com/users/ursabot/received_events",+ "repos_url": "https://api.github.com/users/ursabot/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/ursabot/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursabot/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/ursabot"+ }+ },+ "issue": {+ "assignee": null,+ "assignees": [],+ "author_association": "NONE",+ "body": "",+ "closed_at": null,+ "comments": 2,+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments",+ "created_at": "2019-04-05T11:22:15Z",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/events",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "id": 429706959,+ "labels": [],+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}",+ "locked": false,+ "milestone": null,+ "node_id": "MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy",+ "number": 26,+ "pull_request": {+ "diff_url": "https://github.com/ursa-labs/ursabot/pull/26.diff",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "patch_url": "https://github.com/ursa-labs/ursabot/pull/26.patch",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26"+ },+ "repository_url": "https://api.github.com/repos/ursa-labs/ursabot",+ "state": "open",+ "title": "Unittests for GithubHook",+ "updated_at": "2019-04-05T11:35:47Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "user": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+ },+ "organization": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "description": "Innovation lab for open source data science tools, powered by Apache Arrow",+ "events_url": "https://api.github.com/orgs/ursa-labs/events",+ "hooks_url": "https://api.github.com/orgs/ursa-labs/hooks",+ "id": 46514972,+ "issues_url": "https://api.github.com/orgs/ursa-labs/issues",+ "login": "ursa-labs",+ "members_url": "https://api.github.com/orgs/ursa-labs/members{/member}",+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "public_members_url": "https://api.github.com/orgs/ursa-labs/public_members{/member}",+ "repos_url": "https://api.github.com/orgs/ursa-labs/repos",+ "url": "https://api.github.com/orgs/ursa-labs"+ },+ "repository": {+ "archive_url": "https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}",+ "archived": false,+ "assignees_url": "https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}",+ "blobs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}",+ "branches_url": "https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}",+ "clone_url": "https://github.com/ursa-labs/ursabot.git",+ "collaborators_url": "https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/comments{/number}",+ "commits_url": "https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}",+ "compare_url": "https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}",+ "contributors_url": "https://api.github.com/repos/ursa-labs/ursabot/contributors",+ "created_at": "2019-02-04T15:40:31Z",+ "default_branch": "master",+ "deployments_url": "https://api.github.com/repos/ursa-labs/ursabot/deployments",+ "description": null,+ "disabled": false,+ "downloads_url": "https://api.github.com/repos/ursa-labs/ursabot/downloads",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/events",+ "fork": false,+ "forks": 0,+ "forks_count": 0,+ "forks_url": "https://api.github.com/repos/ursa-labs/ursabot/forks",+ "full_name": "ursa-labs/ursabot",+ "git_commits_url": "https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}",+ "git_refs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}",+ "git_tags_url": "https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}",+ "git_url": "git://github.com/ursa-labs/ursabot.git",+ "has_downloads": true,+ "has_issues": true,+ "has_pages": false,+ "has_projects": true,+ "has_wiki": true,+ "homepage": null,+ "hooks_url": "https://api.github.com/repos/ursa-labs/ursabot/hooks",+ "html_url": "https://github.com/ursa-labs/ursabot",+ "id": 169101701,+ "issue_comment_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}",+ "issue_events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}",+ "issues_url": "https://api.github.com/repos/ursa-labs/ursabot/issues{/number}",+ "keys_url": "https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}",+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/labels{/name}",+ "language": "Jupyter Notebook",+ "languages_url": "https://api.github.com/repos/ursa-labs/ursabot/languages",+ "license": null,+ "merges_url": "https://api.github.com/repos/ursa-labs/ursabot/merges",+ "milestones_url": "https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}",+ "mirror_url": null,+ "name": "someone",+ "node_id": "MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=",+ "notifications_url": "https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}",+ "open_issues": 19,+ "open_issues_count": 19,+ "owner": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/ursa-labs",+ "id": 46514972,+ "login": "ursa-labs",+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "type": "Organization",+ "url": "https://api.github.com/users/ursa-labs"+ },+ "private": false,+ "pulls_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}",+ "pushed_at": "2019-04-05T11:22:16Z",+ "releases_url": "https://api.github.com/repos/ursa-labs/ursabot/releases{/id}",+ "size": 892,+ "ssh_url": "[email protected]:ursa-labs/ursabot.git",+ "stargazers_count": 1,+ "stargazers_url": "https://api.github.com/repos/ursa-labs/ursabot/stargazers",+ "statuses_url": "https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}",+ "subscribers_url": "https://api.github.com/repos/ursa-labs/ursabot/subscribers",+ "subscription_url": "https://api.github.com/repos/ursa-labs/ursabot/subscription",+ "svn_url": "https://github.com/ursa-labs/ursabot",+ "tags_url": "https://api.github.com/repos/ursa-labs/ursabot/tags",+ "teams_url": "https://api.github.com/repos/ursa-labs/ursabot/teams",+ "trees_url": "https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}",+ "updated_at": "2019-04-04T17:49:10Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot",+ "watchers": 1,+ "watchers_count": 1+ },+ "sender": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/49275095?v=4",+ "events_url": "https://api.github.com/users/ursabot/events{/privacy}",+ "followers_url": "https://api.github.com/users/ursabot/followers",+ "following_url": "https://api.github.com/users/ursabot/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursabot/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/ursabot",+ "id": 49275095,+ "login": "someone",+ "node_id": "MDQ6VXNlcjQ5Mjc1MDk1",+ "organizations_url": "https://api.github.com/users/ursabot/orgs",+ "received_events_url": "https://api.github.com/users/ursabot/received_events",+ "repos_url": "https://api.github.com/users/ursabot/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/ursabot/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursabot/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/ursabot"+ }+}\ No newline at end of filediff --git a/dev/archery/archery/tests/fixtures/event-issue-comment-by-ursabot.json b/dev/archery/archery/tests/fixtures/event-issue-comment-by-ursabot.jsonnew file mode 100644index 0000000000..bfb7210df8--- /dev/null+++ b/dev/archery/archery/tests/fixtures/event-issue-comment-by-ursabot.json@@ -0,0 +1,212 @@+{+ "action": "created",+ "comment": {+ "author_association": "NONE",+ "body": "Unknown command \"\"",+ "created_at": "2019-04-05T11:35:47Z",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480243815",+ "id": 480243815,+ "issue_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "node_id": "MDEyOklzc3VlQ29tbWVudDQ4MDI0MzgxNQ==",+ "updated_at": "2019-04-05T11:35:47Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480243815",+ "user": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/49275095?v=4",+ "events_url": "https://api.github.com/users/ursabot/events{/privacy}",+ "followers_url": "https://api.github.com/users/ursabot/followers",+ "following_url": "https://api.github.com/users/ursabot/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursabot/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/ursabot",+ "id": 49275095,+ "login": "ursabot",+ "node_id": "MDQ6VXNlcjQ5Mjc1MDk1",+ "organizations_url": "https://api.github.com/users/ursabot/orgs",+ "received_events_url": "https://api.github.com/users/ursabot/received_events",+ "repos_url": "https://api.github.com/users/ursabot/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/ursabot/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursabot/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/ursabot"+ }+ },+ "issue": {+ "assignee": null,+ "assignees": [],+ "author_association": "MEMBER",+ "body": "",+ "closed_at": null,+ "comments": 2,+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments",+ "created_at": "2019-04-05T11:22:15Z",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/events",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "id": 429706959,+ "labels": [],+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}",+ "locked": false,+ "milestone": null,+ "node_id": "MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy",+ "number": 26,+ "pull_request": {+ "diff_url": "https://github.com/ursa-labs/ursabot/pull/26.diff",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "patch_url": "https://github.com/ursa-labs/ursabot/pull/26.patch",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26"+ },+ "repository_url": "https://api.github.com/repos/ursa-labs/ursabot",+ "state": "open",+ "title": "Unittests for GithubHook",+ "updated_at": "2019-04-05T11:35:47Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "user": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+ },+ "organization": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "description": "Innovation lab for open source data science tools, powered by Apache Arrow",+ "events_url": "https://api.github.com/orgs/ursa-labs/events",+ "hooks_url": "https://api.github.com/orgs/ursa-labs/hooks",+ "id": 46514972,+ "issues_url": "https://api.github.com/orgs/ursa-labs/issues",+ "login": "ursa-labs",+ "members_url": "https://api.github.com/orgs/ursa-labs/members{/member}",+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "public_members_url": "https://api.github.com/orgs/ursa-labs/public_members{/member}",+ "repos_url": "https://api.github.com/orgs/ursa-labs/repos",+ "url": "https://api.github.com/orgs/ursa-labs"+ },+ "repository": {+ "archive_url": "https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}",+ "archived": false,+ "assignees_url": "https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}",+ "blobs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}",+ "branches_url": "https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}",+ "clone_url": "https://github.com/ursa-labs/ursabot.git",+ "collaborators_url": "https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/comments{/number}",+ "commits_url": "https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}",+ "compare_url": "https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}",+ "contributors_url": "https://api.github.com/repos/ursa-labs/ursabot/contributors",+ "created_at": "2019-02-04T15:40:31Z",+ "default_branch": "master",+ "deployments_url": "https://api.github.com/repos/ursa-labs/ursabot/deployments",+ "description": null,+ "disabled": false,+ "downloads_url": "https://api.github.com/repos/ursa-labs/ursabot/downloads",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/events",+ "fork": false,+ "forks": 0,+ "forks_count": 0,+ "forks_url": "https://api.github.com/repos/ursa-labs/ursabot/forks",+ "full_name": "ursa-labs/ursabot",+ "git_commits_url": "https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}",+ "git_refs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}",+ "git_tags_url": "https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}",+ "git_url": "git://github.com/ursa-labs/ursabot.git",+ "has_downloads": true,+ "has_issues": true,+ "has_pages": false,+ "has_projects": true,+ "has_wiki": true,+ "homepage": null,+ "hooks_url": "https://api.github.com/repos/ursa-labs/ursabot/hooks",+ "html_url": "https://github.com/ursa-labs/ursabot",+ "id": 169101701,+ "issue_comment_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}",+ "issue_events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}",+ "issues_url": "https://api.github.com/repos/ursa-labs/ursabot/issues{/number}",+ "keys_url": "https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}",+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/labels{/name}",+ "language": "Jupyter Notebook",+ "languages_url": "https://api.github.com/repos/ursa-labs/ursabot/languages",+ "license": null,+ "merges_url": "https://api.github.com/repos/ursa-labs/ursabot/merges",+ "milestones_url": "https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}",+ "mirror_url": null,+ "name": "ursabot",+ "node_id": "MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=",+ "notifications_url": "https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}",+ "open_issues": 19,+ "open_issues_count": 19,+ "owner": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/ursa-labs",+ "id": 46514972,+ "login": "ursa-labs",+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "type": "Organization",+ "url": "https://api.github.com/users/ursa-labs"+ },+ "private": false,+ "pulls_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}",+ "pushed_at": "2019-04-05T11:22:16Z",+ "releases_url": "https://api.github.com/repos/ursa-labs/ursabot/releases{/id}",+ "size": 892,+ "ssh_url": "[email protected]:ursa-labs/ursabot.git",+ "stargazers_count": 1,+ "stargazers_url": "https://api.github.com/repos/ursa-labs/ursabot/stargazers",+ "statuses_url": "https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}",+ "subscribers_url": "https://api.github.com/repos/ursa-labs/ursabot/subscribers",+ "subscription_url": "https://api.github.com/repos/ursa-labs/ursabot/subscription",+ "svn_url": "https://github.com/ursa-labs/ursabot",+ "tags_url": "https://api.github.com/repos/ursa-labs/ursabot/tags",+ "teams_url": "https://api.github.com/repos/ursa-labs/ursabot/teams",+ "trees_url": "https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}",+ "updated_at": "2019-04-04T17:49:10Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot",+ "watchers": 1,+ "watchers_count": 1+ },+ "sender": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/49275095?v=4",+ "events_url": "https://api.github.com/users/ursabot/events{/privacy}",+ "followers_url": "https://api.github.com/users/ursabot/followers",+ "following_url": "https://api.github.com/users/ursabot/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursabot/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/ursabot",+ "id": 49275095,+ "login": "ursabot",+ "node_id": "MDQ6VXNlcjQ5Mjc1MDk1",+ "organizations_url": "https://api.github.com/users/ursabot/orgs",+ "received_events_url": "https://api.github.com/users/ursabot/received_events",+ "repos_url": "https://api.github.com/users/ursabot/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/ursabot/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursabot/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/ursabot"+ }+}\ No newline at end of filediff --git a/dev/archery/archery/tests/fixtures/event-issue-comment-not-mentioning-ursabot.json b/dev/archery/archery/tests/fixtures/event-issue-comment-not-mentioning-ursabot.jsonnew file mode 100644index 0000000000..a3d450078a--- /dev/null+++ b/dev/archery/archery/tests/fixtures/event-issue-comment-not-mentioning-ursabot.json@@ -0,0 +1,212 @@+{+ "action": "created",+ "comment": {+ "author_association": "MEMBER",+ "body": "bear is no game",+ "created_at": "2019-04-05T11:26:56Z",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480241727",+ "id": 480241727,+ "issue_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "node_id": "MDEyOklzc3VlQ29tbWVudDQ4MDI0MTcyNw==",+ "updated_at": "2019-04-05T11:26:56Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480241727",+ "user": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+ },+ "issue": {+ "assignee": null,+ "assignees": [],+ "author_association": "MEMBER",+ "body": "",+ "closed_at": null,+ "comments": 0,+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments",+ "created_at": "2019-04-05T11:22:15Z",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/events",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "id": 429706959,+ "labels": [],+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}",+ "locked": false,+ "milestone": null,+ "node_id": "MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy",+ "number": 26,+ "pull_request": {+ "diff_url": "https://github.com/ursa-labs/ursabot/pull/26.diff",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "patch_url": "https://github.com/ursa-labs/ursabot/pull/26.patch",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26"+ },+ "repository_url": "https://api.github.com/repos/ursa-labs/ursabot",+ "state": "open",+ "title": "Unittests for GithubHook",+ "updated_at": "2019-04-05T11:26:56Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "user": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+ },+ "organization": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "description": "Innovation lab for open source data science tools, powered by Apache Arrow",+ "events_url": "https://api.github.com/orgs/ursa-labs/events",+ "hooks_url": "https://api.github.com/orgs/ursa-labs/hooks",+ "id": 46514972,+ "issues_url": "https://api.github.com/orgs/ursa-labs/issues",+ "login": "ursa-labs",+ "members_url": "https://api.github.com/orgs/ursa-labs/members{/member}",+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "public_members_url": "https://api.github.com/orgs/ursa-labs/public_members{/member}",+ "repos_url": "https://api.github.com/orgs/ursa-labs/repos",+ "url": "https://api.github.com/orgs/ursa-labs"+ },+ "repository": {+ "archive_url": "https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}",+ "archived": false,+ "assignees_url": "https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}",+ "blobs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}",+ "branches_url": "https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}",+ "clone_url": "https://github.com/ursa-labs/ursabot.git",+ "collaborators_url": "https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/comments{/number}",+ "commits_url": "https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}",+ "compare_url": "https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}",+ "contributors_url": "https://api.github.com/repos/ursa-labs/ursabot/contributors",+ "created_at": "2019-02-04T15:40:31Z",+ "default_branch": "master",+ "deployments_url": "https://api.github.com/repos/ursa-labs/ursabot/deployments",+ "description": null,+ "disabled": false,+ "downloads_url": "https://api.github.com/repos/ursa-labs/ursabot/downloads",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/events",+ "fork": false,+ "forks": 0,+ "forks_count": 0,+ "forks_url": "https://api.github.com/repos/ursa-labs/ursabot/forks",+ "full_name": "ursa-labs/ursabot",+ "git_commits_url": "https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}",+ "git_refs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}",+ "git_tags_url": "https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}",+ "git_url": "git://github.com/ursa-labs/ursabot.git",+ "has_downloads": true,+ "has_issues": true,+ "has_pages": false,+ "has_projects": true,+ "has_wiki": true,+ "homepage": null,+ "hooks_url": "https://api.github.com/repos/ursa-labs/ursabot/hooks",+ "html_url": "https://github.com/ursa-labs/ursabot",+ "id": 169101701,+ "issue_comment_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}",+ "issue_events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}",+ "issues_url": "https://api.github.com/repos/ursa-labs/ursabot/issues{/number}",+ "keys_url": "https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}",+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/labels{/name}",+ "language": "Jupyter Notebook",+ "languages_url": "https://api.github.com/repos/ursa-labs/ursabot/languages",+ "license": null,+ "merges_url": "https://api.github.com/repos/ursa-labs/ursabot/merges",+ "milestones_url": "https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}",+ "mirror_url": null,+ "name": "ursabot",+ "node_id": "MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=",+ "notifications_url": "https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}",+ "open_issues": 19,+ "open_issues_count": 19,+ "owner": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/ursa-labs",+ "id": 46514972,+ "login": "ursa-labs",+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "type": "Organization",+ "url": "https://api.github.com/users/ursa-labs"+ },+ "private": false,+ "pulls_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}",+ "pushed_at": "2019-04-05T11:22:16Z",+ "releases_url": "https://api.github.com/repos/ursa-labs/ursabot/releases{/id}",+ "size": 892,+ "ssh_url": "[email protected]:ursa-labs/ursabot.git",+ "stargazers_count": 1,+ "stargazers_url": "https://api.github.com/repos/ursa-labs/ursabot/stargazers",+ "statuses_url": "https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}",+ "subscribers_url": "https://api.github.com/repos/ursa-labs/ursabot/subscribers",+ "subscription_url": "https://api.github.com/repos/ursa-labs/ursabot/subscription",+ "svn_url": "https://github.com/ursa-labs/ursabot",+ "tags_url": "https://api.github.com/repos/ursa-labs/ursabot/tags",+ "teams_url": "https://api.github.com/repos/ursa-labs/ursabot/teams",+ "trees_url": "https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}",+ "updated_at": "2019-04-04T17:49:10Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot",+ "watchers": 1,+ "watchers_count": 1+ },+ "sender": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+}\ No newline at end of filediff --git a/dev/archery/archery/tests/fixtures/event-issue-comment-with-empty-command.json b/dev/archery/archery/tests/fixtures/event-issue-comment-with-empty-command.jsonnew file mode 100644index 0000000000..c88197c8e0--- /dev/null+++ b/dev/archery/archery/tests/fixtures/event-issue-comment-with-empty-command.json@@ -0,0 +1,217 @@+{+ "action": "created",+ "comment": {+ "author_association": "MEMBER",+ "body": "@ursabot ",+ "body_html": "",+ "body_text": "",+ "created_at": "2019-04-05T11:35:46Z",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480243811",+ "id": 480243811,+ "issue_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "node_id": "MDEyOklzc3VlQ29tbWVudDQ4MDI0MzgxMQ==",+ "updated_at": "2019-04-05T11:35:46Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480243811",+ "user": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+ },+ "issue": {+ "assignee": null,+ "assignees": [],+ "author_association": "MEMBER",+ "body": "",+ "body_html": "",+ "body_text": "",+ "closed_at": null,+ "closed_by": null,+ "comments": 1,+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments",+ "created_at": "2019-04-05T11:22:15Z",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/events",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "id": 429706959,+ "labels": [],+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}",+ "locked": false,+ "milestone": null,+ "node_id": "MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy",+ "number": 26,+ "pull_request": {+ "diff_url": "https://github.com/ursa-labs/ursabot/pull/26.diff",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "patch_url": "https://github.com/ursa-labs/ursabot/pull/26.patch",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26"+ },+ "repository_url": "https://api.github.com/repos/ursa-labs/ursabot",+ "state": "open",+ "title": "Unittests for GithubHook",+ "updated_at": "2019-04-05T11:35:46Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "user": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+ },+ "organization": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "description": "Innovation lab for open source data science tools, powered by Apache Arrow",+ "events_url": "https://api.github.com/orgs/ursa-labs/events",+ "hooks_url": "https://api.github.com/orgs/ursa-labs/hooks",+ "id": 46514972,+ "issues_url": "https://api.github.com/orgs/ursa-labs/issues",+ "login": "ursa-labs",+ "members_url": "https://api.github.com/orgs/ursa-labs/members{/member}",+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "public_members_url": "https://api.github.com/orgs/ursa-labs/public_members{/member}",+ "repos_url": "https://api.github.com/orgs/ursa-labs/repos",+ "url": "https://api.github.com/orgs/ursa-labs"+ },+ "repository": {+ "archive_url": "https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}",+ "archived": false,+ "assignees_url": "https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}",+ "blobs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}",+ "branches_url": "https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}",+ "clone_url": "https://github.com/ursa-labs/ursabot.git",+ "collaborators_url": "https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/comments{/number}",+ "commits_url": "https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}",+ "compare_url": "https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}",+ "contributors_url": "https://api.github.com/repos/ursa-labs/ursabot/contributors",+ "created_at": "2019-02-04T15:40:31Z",+ "default_branch": "master",+ "deployments_url": "https://api.github.com/repos/ursa-labs/ursabot/deployments",+ "description": null,+ "disabled": false,+ "downloads_url": "https://api.github.com/repos/ursa-labs/ursabot/downloads",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/events",+ "fork": false,+ "forks": 0,+ "forks_count": 0,+ "forks_url": "https://api.github.com/repos/ursa-labs/ursabot/forks",+ "full_name": "ursa-labs/ursabot",+ "git_commits_url": "https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}",+ "git_refs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}",+ "git_tags_url": "https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}",+ "git_url": "git://github.com/ursa-labs/ursabot.git",+ "has_downloads": true,+ "has_issues": true,+ "has_pages": false,+ "has_projects": true,+ "has_wiki": true,+ "homepage": null,+ "hooks_url": "https://api.github.com/repos/ursa-labs/ursabot/hooks",+ "html_url": "https://github.com/ursa-labs/ursabot",+ "id": 169101701,+ "issue_comment_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}",+ "issue_events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}",+ "issues_url": "https://api.github.com/repos/ursa-labs/ursabot/issues{/number}",+ "keys_url": "https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}",+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/labels{/name}",+ "language": "Jupyter Notebook",+ "languages_url": "https://api.github.com/repos/ursa-labs/ursabot/languages",+ "license": null,+ "merges_url": "https://api.github.com/repos/ursa-labs/ursabot/merges",+ "milestones_url": "https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}",+ "mirror_url": null,+ "name": "ursabot",+ "node_id": "MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=",+ "notifications_url": "https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}",+ "open_issues": 19,+ "open_issues_count": 19,+ "owner": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/ursa-labs",+ "id": 46514972,+ "login": "ursa-labs",+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "type": "Organization",+ "url": "https://api.github.com/users/ursa-labs"+ },+ "private": false,+ "pulls_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}",+ "pushed_at": "2019-04-05T11:22:16Z",+ "releases_url": "https://api.github.com/repos/ursa-labs/ursabot/releases{/id}",+ "size": 892,+ "ssh_url": "[email protected]:ursa-labs/ursabot.git",+ "stargazers_count": 1,+ "stargazers_url": "https://api.github.com/repos/ursa-labs/ursabot/stargazers",+ "statuses_url": "https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}",+ "subscribers_url": "https://api.github.com/repos/ursa-labs/ursabot/subscribers",+ "subscription_url": "https://api.github.com/repos/ursa-labs/ursabot/subscription",+ "svn_url": "https://github.com/ursa-labs/ursabot",+ "tags_url": "https://api.github.com/repos/ursa-labs/ursabot/tags",+ "teams_url": "https://api.github.com/repos/ursa-labs/ursabot/teams",+ "trees_url": "https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}",+ "updated_at": "2019-04-04T17:49:10Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot",+ "watchers": 1,+ "watchers_count": 1+ },+ "sender": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+}\ No newline at end of filediff --git a/dev/archery/archery/tests/fixtures/event-issue-comment-without-pull-request.json b/dev/archery/archery/tests/fixtures/event-issue-comment-without-pull-request.jsonnew file mode 100644index 0000000000..9e362fc0e1--- /dev/null+++ b/dev/archery/archery/tests/fixtures/event-issue-comment-without-pull-request.json@@ -0,0 +1,206 @@+{+ "action": "created",+ "comment": {+ "author_association": "MEMBER",+ "body": "@ursabot build",+ "created_at": "2019-04-05T13:07:57Z",+ "html_url": "https://github.com/ursa-labs/ursabot/issues/19#issuecomment-480268708",+ "id": 480268708,+ "issue_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/19",+ "node_id": "MDEyOklzc3VlQ29tbWVudDQ4MDI2ODcwOA==",+ "updated_at": "2019-04-05T13:07:57Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480268708",+ "user": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+ },+ "issue": {+ "assignee": null,+ "assignees": [],+ "author_association": "MEMBER",+ "body": "",+ "closed_at": null,+ "comments": 5,+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/19/comments",+ "created_at": "2019-04-02T09:56:41Z",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/19/events",+ "html_url": "https://github.com/ursa-labs/ursabot/issues/19",+ "id": 428131685,+ "labels": [],+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/19/labels{/name}",+ "locked": false,+ "milestone": null,+ "node_id": "MDU6SXNzdWU0MjgxMzE2ODU=",+ "number": 19,+ "repository_url": "https://api.github.com/repos/ursa-labs/ursabot",+ "state": "open",+ "title": "Build ursabot itself via ursabot",+ "updated_at": "2019-04-05T13:07:57Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/19",+ "user": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+ },+ "organization": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "description": "Innovation lab for open source data science tools, powered by Apache Arrow",+ "events_url": "https://api.github.com/orgs/ursa-labs/events",+ "hooks_url": "https://api.github.com/orgs/ursa-labs/hooks",+ "id": 46514972,+ "issues_url": "https://api.github.com/orgs/ursa-labs/issues",+ "login": "ursa-labs",+ "members_url": "https://api.github.com/orgs/ursa-labs/members{/member}",+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "public_members_url": "https://api.github.com/orgs/ursa-labs/public_members{/member}",+ "repos_url": "https://api.github.com/orgs/ursa-labs/repos",+ "url": "https://api.github.com/orgs/ursa-labs"+ },+ "repository": {+ "archive_url": "https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}",+ "archived": false,+ "assignees_url": "https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}",+ "blobs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}",+ "branches_url": "https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}",+ "clone_url": "https://github.com/ursa-labs/ursabot.git",+ "collaborators_url": "https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/comments{/number}",+ "commits_url": "https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}",+ "compare_url": "https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}",+ "contributors_url": "https://api.github.com/repos/ursa-labs/ursabot/contributors",+ "created_at": "2019-02-04T15:40:31Z",+ "default_branch": "master",+ "deployments_url": "https://api.github.com/repos/ursa-labs/ursabot/deployments",+ "description": null,+ "disabled": false,+ "downloads_url": "https://api.github.com/repos/ursa-labs/ursabot/downloads",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/events",+ "fork": false,+ "forks": 0,+ "forks_count": 0,+ "forks_url": "https://api.github.com/repos/ursa-labs/ursabot/forks",+ "full_name": "ursa-labs/ursabot",+ "git_commits_url": "https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}",+ "git_refs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}",+ "git_tags_url": "https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}",+ "git_url": "git://github.com/ursa-labs/ursabot.git",+ "has_downloads": true,+ "has_issues": true,+ "has_pages": false,+ "has_projects": true,+ "has_wiki": true,+ "homepage": null,+ "hooks_url": "https://api.github.com/repos/ursa-labs/ursabot/hooks",+ "html_url": "https://github.com/ursa-labs/ursabot",+ "id": 169101701,+ "issue_comment_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}",+ "issue_events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}",+ "issues_url": "https://api.github.com/repos/ursa-labs/ursabot/issues{/number}",+ "keys_url": "https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}",+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/labels{/name}",+ "language": "Jupyter Notebook",+ "languages_url": "https://api.github.com/repos/ursa-labs/ursabot/languages",+ "license": null,+ "merges_url": "https://api.github.com/repos/ursa-labs/ursabot/merges",+ "milestones_url": "https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}",+ "mirror_url": null,+ "name": "ursabot",+ "node_id": "MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=",+ "notifications_url": "https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}",+ "open_issues": 19,+ "open_issues_count": 19,+ "owner": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/ursa-labs",+ "id": 46514972,+ "login": "ursa-labs",+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "type": "Organization",+ "url": "https://api.github.com/users/ursa-labs"+ },+ "private": false,+ "pulls_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}",+ "pushed_at": "2019-04-05T12:01:40Z",+ "releases_url": "https://api.github.com/repos/ursa-labs/ursabot/releases{/id}",+ "size": 898,+ "ssh_url": "[email protected]:ursa-labs/ursabot.git",+ "stargazers_count": 1,+ "stargazers_url": "https://api.github.com/repos/ursa-labs/ursabot/stargazers",+ "statuses_url": "https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}",+ "subscribers_url": "https://api.github.com/repos/ursa-labs/ursabot/subscribers",+ "subscription_url": "https://api.github.com/repos/ursa-labs/ursabot/subscription",+ "svn_url": "https://github.com/ursa-labs/ursabot",+ "tags_url": "https://api.github.com/repos/ursa-labs/ursabot/tags",+ "teams_url": "https://api.github.com/repos/ursa-labs/ursabot/teams",+ "trees_url": "https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}",+ "updated_at": "2019-04-04T17:49:10Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot",+ "watchers": 1,+ "watchers_count": 1+ },+ "sender": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+}\ No newline at end of filediff --git a/dev/archery/archery/tests/fixtures/event-pull-request-opened.json b/dev/archery/archery/tests/fixtures/event-pull-request-opened.jsonnew file mode 100644index 0000000000..9cf5c0dda7--- /dev/null+++ b/dev/archery/archery/tests/fixtures/event-pull-request-opened.json@@ -0,0 +1,445 @@+{+ "action": "opened",+ "number": 26,+ "pull_request": {+ "url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26",+ "id": 267785552,+ "node_id": "MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "diff_url": "https://github.com/ursa-labs/ursabot/pull/26.diff",+ "patch_url": "https://github.com/ursa-labs/ursabot/pull/26.patch",+ "issue_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "number": 26,+ "state": "open",+ "locked": false,+ "title": "Unittests for GithubHook",+ "user": {+ "login": "kszucs",+ "id": 961747,+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/kszucs",+ "html_url": "https://github.com/kszucs",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "type": "User",+ "site_admin": false+ },+ "body": "",+ "created_at": "2019-04-05T11:22:15Z",+ "updated_at": "2019-04-05T12:01:40Z",+ "closed_at": null,+ "merged_at": null,+ "merge_commit_sha": "cc5dc3606988b3824be54df779ed2028776113cb",+ "assignee": null,+ "assignees": [],+ "requested_reviewers": [],+ "requested_teams": [],+ "labels": [],+ "milestone": null,+ "commits_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26/commits",+ "review_comments_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26/comments",+ "review_comment_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/comments{/number}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments",+ "statuses_url": "https://api.github.com/repos/ursa-labs/ursabot/statuses/2705da2b616b98fa6010a25813c5a7a27456f71d",+ "head": {+ "label": "ursa-labs:test-hook",+ "ref": "test-hook",+ "sha": "2705da2b616b98fa6010a25813c5a7a27456f71d",+ "user": {+ "login": "ursa-labs",+ "id": 46514972,+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/ursa-labs",+ "html_url": "https://github.com/ursa-labs",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "type": "Organization",+ "site_admin": false+ },+ "repo": {+ "id": 169101701,+ "node_id": "MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=",+ "name": "ursabot",+ "full_name": "ursa-labs/ursabot",+ "private": false,+ "owner": {+ "login": "ursa-labs",+ "id": 46514972,+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/ursa-labs",+ "html_url": "https://github.com/ursa-labs",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "type": "Organization",+ "site_admin": false+ },+ "html_url": "https://github.com/ursa-labs/ursabot",+ "description": null,+ "fork": false,+ "url": "https://api.github.com/repos/ursa-labs/ursabot",+ "forks_url": "https://api.github.com/repos/ursa-labs/ursabot/forks",+ "keys_url": "https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}",+ "collaborators_url": "https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}",+ "teams_url": "https://api.github.com/repos/ursa-labs/ursabot/teams",+ "hooks_url": "https://api.github.com/repos/ursa-labs/ursabot/hooks",+ "issue_events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/events",+ "assignees_url": "https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}",+ "branches_url": "https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}",+ "tags_url": "https://api.github.com/repos/ursa-labs/ursabot/tags",+ "blobs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}",+ "git_tags_url": "https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}",+ "git_refs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}",+ "trees_url": "https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}",+ "statuses_url": "https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}",+ "languages_url": "https://api.github.com/repos/ursa-labs/ursabot/languages",+ "stargazers_url": "https://api.github.com/repos/ursa-labs/ursabot/stargazers",+ "contributors_url": "https://api.github.com/repos/ursa-labs/ursabot/contributors",+ "subscribers_url": "https://api.github.com/repos/ursa-labs/ursabot/subscribers",+ "subscription_url": "https://api.github.com/repos/ursa-labs/ursabot/subscription",+ "commits_url": "https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}",+ "git_commits_url": "https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/comments{/number}",+ "issue_comment_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}",+ "compare_url": "https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}",+ "merges_url": "https://api.github.com/repos/ursa-labs/ursabot/merges",+ "archive_url": "https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}",+ "downloads_url": "https://api.github.com/repos/ursa-labs/ursabot/downloads",+ "issues_url": "https://api.github.com/repos/ursa-labs/ursabot/issues{/number}",+ "pulls_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}",+ "milestones_url": "https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}",+ "notifications_url": "https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}",+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/labels{/name}",+ "releases_url": "https://api.github.com/repos/ursa-labs/ursabot/releases{/id}",+ "deployments_url": "https://api.github.com/repos/ursa-labs/ursabot/deployments",+ "created_at": "2019-02-04T15:40:31Z",+ "updated_at": "2019-04-04T17:49:10Z",+ "pushed_at": "2019-04-05T12:01:40Z",+ "git_url": "git://github.com/ursa-labs/ursabot.git",+ "ssh_url": "[email protected]:ursa-labs/ursabot.git",+ "clone_url": "https://github.com/ursa-labs/ursabot.git",+ "svn_url": "https://github.com/ursa-labs/ursabot",+ "homepage": null,+ "size": 898,+ "stargazers_count": 1,+ "watchers_count": 1,+ "language": "Jupyter Notebook",+ "has_issues": true,+ "has_projects": true,+ "has_downloads": true,+ "has_wiki": true,+ "has_pages": false,+ "forks_count": 0,+ "mirror_url": null,+ "archived": false,+ "disabled": false,+ "open_issues_count": 19,+ "license": null,+ "forks": 0,+ "open_issues": 19,+ "watchers": 1,+ "default_branch": "master"+ }+ },+ "base": {+ "label": "ursa-labs:master",+ "ref": "master",+ "sha": "a162ad254b589b924db47e057791191b39613fd5",+ "user": {+ "login": "ursa-labs",+ "id": 46514972,+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/ursa-labs",+ "html_url": "https://github.com/ursa-labs",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "type": "Organization",+ "site_admin": false+ },+ "repo": {+ "id": 169101701,+ "node_id": "MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=",+ "name": "ursabot",+ "full_name": "ursa-labs/ursabot",+ "private": false,+ "owner": {+ "login": "ursa-labs",+ "id": 46514972,+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/ursa-labs",+ "html_url": "https://github.com/ursa-labs",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "type": "Organization",+ "site_admin": false+ },+ "html_url": "https://github.com/ursa-labs/ursabot",+ "description": null,+ "fork": false,+ "url": "https://api.github.com/repos/ursa-labs/ursabot",+ "forks_url": "https://api.github.com/repos/ursa-labs/ursabot/forks",+ "keys_url": "https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}",+ "collaborators_url": "https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}",+ "teams_url": "https://api.github.com/repos/ursa-labs/ursabot/teams",+ "hooks_url": "https://api.github.com/repos/ursa-labs/ursabot/hooks",+ "issue_events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/events",+ "assignees_url": "https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}",+ "branches_url": "https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}",+ "tags_url": "https://api.github.com/repos/ursa-labs/ursabot/tags",+ "blobs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}",+ "git_tags_url": "https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}",+ "git_refs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}",+ "trees_url": "https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}",+ "statuses_url": "https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}",+ "languages_url": "https://api.github.com/repos/ursa-labs/ursabot/languages",+ "stargazers_url": "https://api.github.com/repos/ursa-labs/ursabot/stargazers",+ "contributors_url": "https://api.github.com/repos/ursa-labs/ursabot/contributors",+ "subscribers_url": "https://api.github.com/repos/ursa-labs/ursabot/subscribers",+ "subscription_url": "https://api.github.com/repos/ursa-labs/ursabot/subscription",+ "commits_url": "https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}",+ "git_commits_url": "https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/comments{/number}",+ "issue_comment_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}",+ "compare_url": "https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}",+ "merges_url": "https://api.github.com/repos/ursa-labs/ursabot/merges",+ "archive_url": "https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}",+ "downloads_url": "https://api.github.com/repos/ursa-labs/ursabot/downloads",+ "issues_url": "https://api.github.com/repos/ursa-labs/ursabot/issues{/number}",+ "pulls_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}",+ "milestones_url": "https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}",+ "notifications_url": "https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}",+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/labels{/name}",+ "releases_url": "https://api.github.com/repos/ursa-labs/ursabot/releases{/id}",+ "deployments_url": "https://api.github.com/repos/ursa-labs/ursabot/deployments",+ "created_at": "2019-02-04T15:40:31Z",+ "updated_at": "2019-04-04T17:49:10Z",+ "pushed_at": "2019-04-05T12:01:40Z",+ "git_url": "git://github.com/ursa-labs/ursabot.git",+ "ssh_url": "[email protected]:ursa-labs/ursabot.git",+ "clone_url": "https://github.com/ursa-labs/ursabot.git",+ "svn_url": "https://github.com/ursa-labs/ursabot",+ "homepage": null,+ "size": 898,+ "stargazers_count": 1,+ "watchers_count": 1,+ "language": "Jupyter Notebook",+ "has_issues": true,+ "has_projects": true,+ "has_downloads": true,+ "has_wiki": true,+ "has_pages": false,+ "forks_count": 0,+ "mirror_url": null,+ "archived": false,+ "disabled": false,+ "open_issues_count": 19,+ "license": null,+ "forks": 0,+ "open_issues": 19,+ "watchers": 1,+ "default_branch": "master"+ }+ },+ "_links": {+ "self": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26"+ },+ "html": {+ "href": "https://github.com/ursa-labs/ursabot/pull/26"+ },+ "issue": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/issues/26"+ },+ "comments": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments"+ },+ "review_comments": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26/comments"+ },+ "review_comment": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/pulls/comments{/number}"+ },+ "commits": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26/commits"+ },+ "statuses": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/statuses/2705da2b616b98fa6010a25813c5a7a27456f71d"+ }+ },+ "author_association": "MEMBER",+ "merged": false,+ "mergeable": true,+ "rebaseable": true,+ "mergeable_state": "unstable",+ "merged_by": null,+ "comments": 5,+ "review_comments": 0,+ "maintainer_can_modify": false,+ "commits": 2,+ "additions": 1124,+ "deletions": 0,+ "changed_files": 7+ },+ "repository": {+ "archive_url": "https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}",+ "archived": false,+ "assignees_url": "https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}",+ "blobs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}",+ "branches_url": "https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}",+ "clone_url": "https://github.com/ursa-labs/ursabot.git",+ "collaborators_url": "https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/comments{/number}",+ "commits_url": "https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}",+ "compare_url": "https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}",+ "contributors_url": "https://api.github.com/repos/ursa-labs/ursabot/contributors",+ "created_at": "2019-02-04T15:40:31Z",+ "default_branch": "master",+ "deployments_url": "https://api.github.com/repos/ursa-labs/ursabot/deployments",+ "description": null,+ "disabled": false,+ "downloads_url": "https://api.github.com/repos/ursa-labs/ursabot/downloads",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/events",+ "fork": false,+ "forks": 0,+ "forks_count": 0,+ "forks_url": "https://api.github.com/repos/ursa-labs/ursabot/forks",+ "full_name": "ursa-labs/ursabot",+ "git_commits_url": "https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}",+ "git_refs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}",+ "git_tags_url": "https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}",+ "git_url": "git://github.com/ursa-labs/ursabot.git",+ "has_downloads": true,+ "has_issues": true,+ "has_pages": false,+ "has_projects": true,+ "has_wiki": true,+ "homepage": null,+ "hooks_url": "https://api.github.com/repos/ursa-labs/ursabot/hooks",+ "html_url": "https://github.com/ursa-labs/ursabot",+ "id": 169101701,+ "issue_comment_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}",+ "issue_events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}",+ "issues_url": "https://api.github.com/repos/ursa-labs/ursabot/issues{/number}",+ "keys_url": "https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}",+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/labels{/name}",+ "language": "Jupyter Notebook",+ "languages_url": "https://api.github.com/repos/ursa-labs/ursabot/languages",+ "license": null,+ "merges_url": "https://api.github.com/repos/ursa-labs/ursabot/merges",+ "milestones_url": "https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}",+ "mirror_url": null,+ "name": "ursabot",+ "node_id": "MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=",+ "notifications_url": "https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}",+ "open_issues": 19,+ "open_issues_count": 19,+ "owner": {+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/ursa-labs",+ "id": 46514972,+ "login": "ursa-labs",+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "type": "Organization",+ "url": "https://api.github.com/users/ursa-labs"+ },+ "private": false,+ "pulls_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}",+ "pushed_at": "2019-04-05T11:22:16Z",+ "releases_url": "https://api.github.com/repos/ursa-labs/ursabot/releases{/id}",+ "size": 892,+ "ssh_url": "[email protected]:ursa-labs/ursabot.git",+ "stargazers_count": 1,+ "stargazers_url": "https://api.github.com/repos/ursa-labs/ursabot/stargazers",+ "statuses_url": "https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}",+ "subscribers_url": "https://api.github.com/repos/ursa-labs/ursabot/subscribers",+ "subscription_url": "https://api.github.com/repos/ursa-labs/ursabot/subscription",+ "svn_url": "https://github.com/ursa-labs/ursabot",+ "tags_url": "https://api.github.com/repos/ursa-labs/ursabot/tags",+ "teams_url": "https://api.github.com/repos/ursa-labs/ursabot/teams",+ "trees_url": "https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}",+ "updated_at": "2019-04-04T17:49:10Z",+ "url": "https://api.github.com/repos/ursa-labs/ursabot",+ "watchers": 1,+ "watchers_count": 1+ },+ "sender": {+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "gravatar_id": "",+ "html_url": "https://github.com/kszucs",+ "id": 961747,+ "login": "kszucs",+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "site_admin": false,+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "type": "User",+ "url": "https://api.github.com/users/kszucs"+ }+}\ No newline at end of filediff --git a/dev/archery/archery/tests/fixtures/issue-19.json b/dev/archery/archery/tests/fixtures/issue-19.jsonnew file mode 100644index 0000000000..1e49397765--- /dev/null+++ b/dev/archery/archery/tests/fixtures/issue-19.json@@ -0,0 +1,64 @@+{+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/19",+ "repository_url": "https://api.github.com/repos/ursa-labs/ursabot",+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/19/labels{/name}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/19/comments",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/19/events",+ "html_url": "https://github.com/ursa-labs/ursabot/issues/19",+ "id": 428131685,+ "node_id": "MDU6SXNzdWU0MjgxMzE2ODU=",+ "number": 19,+ "title": "Build ursabot itself via ursabot",+ "user": {+ "login": "kszucs",+ "id": 961747,+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/kszucs",+ "html_url": "https://github.com/kszucs",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "type": "User",+ "site_admin": false+ },+ "labels": [],+ "state": "closed",+ "locked": false,+ "assignee": null,+ "assignees": [],+ "milestone": null,+ "comments": 8,+ "created_at": "2019-04-02T09:56:41Z",+ "updated_at": "2019-04-05T13:30:49Z",+ "closed_at": "2019-04-05T13:30:49Z",+ "author_association": "MEMBER",+ "body": "",+ "closed_by": {+ "login": "kszucs",+ "id": 961747,+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/kszucs",+ "html_url": "https://github.com/kszucs",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "type": "User",+ "site_admin": false+ }+}\ No newline at end of filediff --git a/dev/archery/archery/tests/fixtures/issue-26.json b/dev/archery/archery/tests/fixtures/issue-26.jsonnew file mode 100644index 0000000000..44c4d3bede--- /dev/null+++ b/dev/archery/archery/tests/fixtures/issue-26.json@@ -0,0 +1,70 @@+{+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "repository_url": "https://api.github.com/repos/ursa-labs/ursabot",+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/events",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "id": 429706959,+ "node_id": "MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy",+ "number": 26,+ "title": "Unittests for GithubHook + native asyncio syntax",+ "user": {+ "login": "kszucs",+ "id": 961747,+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/kszucs",+ "html_url": "https://github.com/kszucs",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "type": "User",+ "site_admin": false+ },+ "labels": [],+ "state": "closed",+ "locked": false,+ "assignee": null,+ "assignees": [],+ "milestone": null,+ "comments": 9,+ "created_at": "2019-04-05T11:22:15Z",+ "updated_at": "2019-08-28T00:34:19Z",+ "closed_at": "2019-04-05T13:54:34Z",+ "author_association": "MEMBER",+ "pull_request": {+ "url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "diff_url": "https://github.com/ursa-labs/ursabot/pull/26.diff",+ "patch_url": "https://github.com/ursa-labs/ursabot/pull/26.patch"+ },+ "body": "Resolves:\r\n- #26 Unittests for GithubHook + native asyncio syntax\r\n- #27 Use native async/await keywords instead of @inlineCallbacks and yield\r\n",+ "closed_by": {+ "login": "kszucs",+ "id": 961747,+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/kszucs",+ "html_url": "https://github.com/kszucs",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "type": "User",+ "site_admin": false+ }+}\ No newline at end of filediff --git a/dev/archery/archery/tests/fixtures/issue-comment-480243811.json b/dev/archery/archery/tests/fixtures/issue-comment-480243811.jsonnew file mode 100644index 0000000000..93ee4b13cd--- /dev/null+++ b/dev/archery/archery/tests/fixtures/issue-comment-480243811.json@@ -0,0 +1,31 @@+{+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments/479081273",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/21#issuecomment-479081273",+ "issue_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/21",+ "id": 480243811,+ "node_id": "MDEyOklzc3VlQ29tbWVudDQ3OTA4MTI3Mw==",+ "user": {+ "login": "kszucs",+ "id": 961747,+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/kszucs",+ "html_url": "https://github.com/kszucs",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "type": "User",+ "site_admin": false+ },+ "created_at": "2019-04-02T16:29:46Z",+ "updated_at": "2019-04-02T16:29:46Z",+ "author_association": "MEMBER",+ "body": "@ursabot"+}\ No newline at end of filediff --git a/dev/archery/archery/tests/fixtures/issue-comment-480248726.json b/dev/archery/archery/tests/fixtures/issue-comment-480248726.jsonnew file mode 100644index 0000000000..f3cd34083e--- /dev/null+++ b/dev/archery/archery/tests/fixtures/issue-comment-480248726.json@@ -0,0 +1,31 @@+{+ "url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480248726",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480248726",+ "issue_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "id": 480248726,+ "node_id": "MDEyOklzc3VlQ29tbWVudDQ4MDI0ODcyNg==",+ "user": {+ "login": "kszucs",+ "id": 961747,+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/kszucs",+ "html_url": "https://github.com/kszucs",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "type": "User",+ "site_admin": false+ },+ "created_at": "2019-04-05T11:55:43Z",+ "updated_at": "2019-04-05T11:55:43Z",+ "author_association": "MEMBER",+ "body": "@ursabot build"+}\ No newline at end of filediff --git a/dev/archery/archery/tests/fixtures/pull-request-26-commit.json b/dev/archery/archery/tests/fixtures/pull-request-26-commit.jsonnew file mode 100644index 0000000000..ffc48943a6--- /dev/null+++ b/dev/archery/archery/tests/fixtures/pull-request-26-commit.json@@ -0,0 +1,158 @@+{+ "sha": "2705da2b616b98fa6010a25813c5a7a27456f71d",+ "node_id": "MDY6Q29tbWl0MTY5MTAxNzAxOjI3MDVkYTJiNjE2Yjk4ZmE2MDEwYTI1ODEzYzVhN2EyNzQ1NmY3MWQ=",+ "commit": {+ "author": {+ "name": "Krisztián Szűcs",+ "email": "[email protected]",+ "date": "2019-04-05T12:01:31Z"+ },+ "committer": {+ "name": "Krisztián Szűcs",+ "email": "[email protected]",+ "date": "2019-04-05T12:01:31Z"+ },+ "message": "add recorded event requests",+ "tree": {+ "sha": "16a7bb186833a67e9c2d84a58393503b85500ceb",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/git/trees/16a7bb186833a67e9c2d84a58393503b85500ceb"+ },+ "url": "https://api.github.com/repos/ursa-labs/ursabot/git/commits/2705da2b616b98fa6010a25813c5a7a27456f71d",+ "comment_count": 0,+ "verification": {+ "verified": true,+ "reason": "valid",+ "signature": "-----BEGIN PGP SIGNATURE-----\n\niQFOBAABCAA4FiEEOOW2r8dr6sA77zHlgjqBKYe1QKUFAlynQ58aHHN6dWNzLmty\naXN6dGlhbkBnbWFpbC5jb20ACgkQgjqBKYe1QKUYKwf6AiXDMaLqNLNSjRY7lIXX\nudioewz0hSb4bgIXBv30nswu9CoOA0+mHCokEVtZhYbXzXDsZ1KJrilSC4j+Ws4q\nkRGA6iEmrne2HcSKNZXzcVnwV9zpwKxlVh2QCTNb1PuOYFBLH0kwE704uWIWMGDN\nbo8cjQPwegePCRguCvPh/5wa5J3uiq5gmJLG6bC/d1XYE+FJVtlnyzqzLMIryGKe\ntIciw+wwkF413Q/YVbZ49vLUeCX9H8PHC4mZYGDWuvjFW1WTfkjK5bAH+oaTVM6h\n350I5ZFloHmMA/QeRge5qFxXoEBMDGiXHHktzYZDXnliFOQNxzqwirA5lQQ6LRSS\naQ==\n=7rqi\n-----END PGP SIGNATURE-----",+ "payload": "tree 16a7bb186833a67e9c2d84a58393503b85500ceb\nparent 446ae69b9385e8d0f40aa9595f723d34383af2f7\nauthor Krisztián Szűcs <[email protected]> 1554465691 +0200\ncommitter Krisztián Szűcs <[email protected]> 1554465691 +0200\n\nadd recorded event requests\n"+ }+ },+ "url": "https://api.github.com/repos/ursa-labs/ursabot/commits/2705da2b616b98fa6010a25813c5a7a27456f71d",+ "html_url": "https://github.com/ursa-labs/ursabot/commit/2705da2b616b98fa6010a25813c5a7a27456f71d",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/commits/2705da2b616b98fa6010a25813c5a7a27456f71d/comments",+ "author": {+ "login": "kszucs",+ "id": 961747,+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/kszucs",+ "html_url": "https://github.com/kszucs",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "type": "User",+ "site_admin": false+ },+ "committer": {+ "login": "kszucs",+ "id": 961747,+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/kszucs",+ "html_url": "https://github.com/kszucs",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "type": "User",+ "site_admin": false+ },+ "parents": [+ {+ "sha": "446ae69b9385e8d0f40aa9595f723d34383af2f7",+ "url": "https://api.github.com/repos/ursa-labs/ursabot/commits/446ae69b9385e8d0f40aa9595f723d34383af2f7",+ "html_url": "https://github.com/ursa-labs/ursabot/commit/446ae69b9385e8d0f40aa9595f723d34383af2f7"+ }+ ],+ "stats": {+ "total": 1062,+ "additions": 1058,+ "deletions": 4+ },+ "files": [+ {+ "sha": "dfae6eeaef384ae6180c6302a58b49e39982dc33",+ "filename": "ursabot/tests/fixtures/issue-comment-build-command.json",+ "status": "added",+ "additions": 212,+ "deletions": 0,+ "changes": 212,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-build-command.json",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-build-command.json",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-build-command.json?ref=2705da2b616b98fa6010a25813c5a7a27456f71d",+ "patch": "@@ -0,0 +1,212 @@\n+{\n+ \"action\": \"created\",\n+ \"comment\": {\n+ \"author_association\": \"NONE\",\n+ \"body\": \"I've successfully started builds for this PR\",\n+ \"created_at\": \"2019-04-05T11:55:44Z\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480248730\",\n+ \"id\": 480248730,\n+ \"issue_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"node_id\": \"MDEyOklzc3VlQ29tbWVudDQ4MDI0ODczMA==\",\n+ \"updated_at\": \"2019-04-05T11:55:44Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480248730\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/49275095?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursabot/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursabot/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursabot/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursabot/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursabot\",\n+ \"id\": 49275095,\n+ \"login\": \"ursabot\",\n+ \"node_id\": \"MDQ6VXNlcjQ5Mjc1MDk1\",\n+ \"organizations_url\": \"https://api.github.com/users/ursabot/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursabot/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursabot/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursabot/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursabot/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/ursabot\"\n+ }\n+ },\n+ \"issue\": {\n+ \"assignee\": null,\n+ \"assignees\": [],\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"\",\n+ \"closed_at\": null,\n+ \"comments\": 4,\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\",\n+ \"created_at\": \"2019-04-05T11:22:15Z\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/events\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"id\": 429706959,\n+ \"labels\": [],\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}\",\n+ \"locked\": false,\n+ \"milestone\": null,\n+ \"node_id\": \"MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy\",\n+ \"number\": 26,\n+ \"pull_request\": {\n+ \"diff_url\": \"https://github.com/ursa-labs/ursabot/pull/26.diff\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"patch_url\": \"https://github.com/ursa-labs/ursabot/pull/26.patch\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\"\n+ },\n+ \"repository_url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"state\": \"open\",\n+ \"title\": \"Unittests for GithubHook\",\n+ \"updated_at\": \"2019-04-05T11:55:44Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"organization\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"description\": \"Innovation lab for open source data science tools, powered by Apache Arrow\",\n+ \"events_url\": \"https://api.github.com/orgs/ursa-labs/events\",\n+ \"hooks_url\": \"https://api.github.com/orgs/ursa-labs/hooks\",\n+ \"id\": 46514972,\n+ \"issues_url\": \"https://api.github.com/orgs/ursa-labs/issues\",\n+ \"login\": \"ursa-labs\",\n+ \"members_url\": \"https://api.github.com/orgs/ursa-labs/members{/member}\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"public_members_url\": \"https://api.github.com/orgs/ursa-labs/public_members{/member}\",\n+ \"repos_url\": \"https://api.github.com/orgs/ursa-labs/repos\",\n+ \"url\": \"https://api.github.com/orgs/ursa-labs\"\n+ },\n+ \"repository\": {\n+ \"archive_url\": \"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\",\n+ \"archived\": false,\n+ \"assignees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\",\n+ \"blobs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\",\n+ \"branches_url\": \"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\",\n+ \"clone_url\": \"https://github.com/ursa-labs/ursabot.git\",\n+ \"collaborators_url\": \"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\",\n+ \"commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\",\n+ \"compare_url\": \"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\",\n+ \"contributors_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contributors\",\n+ \"created_at\": \"2019-02-04T15:40:31Z\",\n+ \"default_branch\": \"master\",\n+ \"deployments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/deployments\",\n+ \"description\": null,\n+ \"disabled\": false,\n+ \"downloads_url\": \"https://api.github.com/repos/ursa-labs/ursabot/downloads\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/events\",\n+ \"fork\": false,\n+ \"forks\": 0,\n+ \"forks_count\": 0,\n+ \"forks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/forks\",\n+ \"full_name\": \"ursa-labs/ursabot\",\n+ \"git_commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\",\n+ \"git_refs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\",\n+ \"git_tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\",\n+ \"git_url\": \"git://github.com/ursa-labs/ursabot.git\",\n+ \"has_downloads\": true,\n+ \"has_issues\": true,\n+ \"has_pages\": false,\n+ \"has_projects\": true,\n+ \"has_wiki\": true,\n+ \"homepage\": null,\n+ \"hooks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/hooks\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"id\": 169101701,\n+ \"issue_comment_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\",\n+ \"issue_events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\",\n+ \"issues_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\",\n+ \"keys_url\": \"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\",\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\",\n+ \"language\": \"Jupyter Notebook\",\n+ \"languages_url\": \"https://api.github.com/repos/ursa-labs/ursabot/languages\",\n+ \"license\": null,\n+ \"merges_url\": \"https://api.github.com/repos/ursa-labs/ursabot/merges\",\n+ \"milestones_url\": \"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\",\n+ \"mirror_url\": null,\n+ \"name\": \"ursabot\",\n+ \"node_id\": \"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\",\n+ \"notifications_url\": \"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\",\n+ \"open_issues\": 19,\n+ \"open_issues_count\": 19,\n+ \"owner\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"id\": 46514972,\n+ \"login\": \"ursa-labs\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"type\": \"Organization\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\"\n+ },\n+ \"private\": false,\n+ \"pulls_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\",\n+ \"pushed_at\": \"2019-04-05T11:22:16Z\",\n+ \"releases_url\": \"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\",\n+ \"size\": 892,\n+ \"ssh_url\": \"[email protected]:ursa-labs/ursabot.git\",\n+ \"stargazers_count\": 1,\n+ \"stargazers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/stargazers\",\n+ \"statuses_url\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\",\n+ \"subscribers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscribers\",\n+ \"subscription_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscription\",\n+ \"svn_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/tags\",\n+ \"teams_url\": \"https://api.github.com/repos/ursa-labs/ursabot/teams\",\n+ \"trees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\",\n+ \"updated_at\": \"2019-04-04T17:49:10Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"watchers\": 1,\n+ \"watchers_count\": 1\n+ },\n+ \"sender\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/49275095?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursabot/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursabot/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursabot/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursabot/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursabot\",\n+ \"id\": 49275095,\n+ \"login\": \"ursabot\",\n+ \"node_id\": \"MDQ6VXNlcjQ5Mjc1MDk1\",\n+ \"organizations_url\": \"https://api.github.com/users/ursabot/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursabot/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursabot/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursabot/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursabot/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/ursabot\"\n+ }\n+}"+ },+ {+ "sha": "7ef554e333327f0e62aa1fd76b4b17844a39adeb",+ "filename": "ursabot/tests/fixtures/issue-comment-by-ursabot.json",+ "status": "added",+ "additions": 212,+ "deletions": 0,+ "changes": 212,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-by-ursabot.json",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-by-ursabot.json",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-by-ursabot.json?ref=2705da2b616b98fa6010a25813c5a7a27456f71d",+ "patch": "@@ -0,0 +1,212 @@\n+{\n+ \"action\": \"created\",\n+ \"comment\": {\n+ \"author_association\": \"NONE\",\n+ \"body\": \"Unknown command \\\"\\\"\",\n+ \"created_at\": \"2019-04-05T11:35:47Z\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480243815\",\n+ \"id\": 480243815,\n+ \"issue_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"node_id\": \"MDEyOklzc3VlQ29tbWVudDQ4MDI0MzgxNQ==\",\n+ \"updated_at\": \"2019-04-05T11:35:47Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480243815\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/49275095?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursabot/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursabot/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursabot/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursabot/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursabot\",\n+ \"id\": 49275095,\n+ \"login\": \"ursabot\",\n+ \"node_id\": \"MDQ6VXNlcjQ5Mjc1MDk1\",\n+ \"organizations_url\": \"https://api.github.com/users/ursabot/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursabot/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursabot/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursabot/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursabot/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/ursabot\"\n+ }\n+ },\n+ \"issue\": {\n+ \"assignee\": null,\n+ \"assignees\": [],\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"\",\n+ \"closed_at\": null,\n+ \"comments\": 2,\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\",\n+ \"created_at\": \"2019-04-05T11:22:15Z\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/events\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"id\": 429706959,\n+ \"labels\": [],\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}\",\n+ \"locked\": false,\n+ \"milestone\": null,\n+ \"node_id\": \"MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy\",\n+ \"number\": 26,\n+ \"pull_request\": {\n+ \"diff_url\": \"https://github.com/ursa-labs/ursabot/pull/26.diff\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"patch_url\": \"https://github.com/ursa-labs/ursabot/pull/26.patch\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\"\n+ },\n+ \"repository_url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"state\": \"open\",\n+ \"title\": \"Unittests for GithubHook\",\n+ \"updated_at\": \"2019-04-05T11:35:47Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"organization\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"description\": \"Innovation lab for open source data science tools, powered by Apache Arrow\",\n+ \"events_url\": \"https://api.github.com/orgs/ursa-labs/events\",\n+ \"hooks_url\": \"https://api.github.com/orgs/ursa-labs/hooks\",\n+ \"id\": 46514972,\n+ \"issues_url\": \"https://api.github.com/orgs/ursa-labs/issues\",\n+ \"login\": \"ursa-labs\",\n+ \"members_url\": \"https://api.github.com/orgs/ursa-labs/members{/member}\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"public_members_url\": \"https://api.github.com/orgs/ursa-labs/public_members{/member}\",\n+ \"repos_url\": \"https://api.github.com/orgs/ursa-labs/repos\",\n+ \"url\": \"https://api.github.com/orgs/ursa-labs\"\n+ },\n+ \"repository\": {\n+ \"archive_url\": \"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\",\n+ \"archived\": false,\n+ \"assignees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\",\n+ \"blobs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\",\n+ \"branches_url\": \"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\",\n+ \"clone_url\": \"https://github.com/ursa-labs/ursabot.git\",\n+ \"collaborators_url\": \"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\",\n+ \"commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\",\n+ \"compare_url\": \"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\",\n+ \"contributors_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contributors\",\n+ \"created_at\": \"2019-02-04T15:40:31Z\",\n+ \"default_branch\": \"master\",\n+ \"deployments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/deployments\",\n+ \"description\": null,\n+ \"disabled\": false,\n+ \"downloads_url\": \"https://api.github.com/repos/ursa-labs/ursabot/downloads\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/events\",\n+ \"fork\": false,\n+ \"forks\": 0,\n+ \"forks_count\": 0,\n+ \"forks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/forks\",\n+ \"full_name\": \"ursa-labs/ursabot\",\n+ \"git_commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\",\n+ \"git_refs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\",\n+ \"git_tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\",\n+ \"git_url\": \"git://github.com/ursa-labs/ursabot.git\",\n+ \"has_downloads\": true,\n+ \"has_issues\": true,\n+ \"has_pages\": false,\n+ \"has_projects\": true,\n+ \"has_wiki\": true,\n+ \"homepage\": null,\n+ \"hooks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/hooks\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"id\": 169101701,\n+ \"issue_comment_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\",\n+ \"issue_events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\",\n+ \"issues_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\",\n+ \"keys_url\": \"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\",\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\",\n+ \"language\": \"Jupyter Notebook\",\n+ \"languages_url\": \"https://api.github.com/repos/ursa-labs/ursabot/languages\",\n+ \"license\": null,\n+ \"merges_url\": \"https://api.github.com/repos/ursa-labs/ursabot/merges\",\n+ \"milestones_url\": \"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\",\n+ \"mirror_url\": null,\n+ \"name\": \"ursabot\",\n+ \"node_id\": \"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\",\n+ \"notifications_url\": \"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\",\n+ \"open_issues\": 19,\n+ \"open_issues_count\": 19,\n+ \"owner\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"id\": 46514972,\n+ \"login\": \"ursa-labs\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"type\": \"Organization\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\"\n+ },\n+ \"private\": false,\n+ \"pulls_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\",\n+ \"pushed_at\": \"2019-04-05T11:22:16Z\",\n+ \"releases_url\": \"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\",\n+ \"size\": 892,\n+ \"ssh_url\": \"[email protected]:ursa-labs/ursabot.git\",\n+ \"stargazers_count\": 1,\n+ \"stargazers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/stargazers\",\n+ \"statuses_url\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\",\n+ \"subscribers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscribers\",\n+ \"subscription_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscription\",\n+ \"svn_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/tags\",\n+ \"teams_url\": \"https://api.github.com/repos/ursa-labs/ursabot/teams\",\n+ \"trees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\",\n+ \"updated_at\": \"2019-04-04T17:49:10Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"watchers\": 1,\n+ \"watchers_count\": 1\n+ },\n+ \"sender\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/49275095?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursabot/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursabot/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursabot/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursabot/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursabot\",\n+ \"id\": 49275095,\n+ \"login\": \"ursabot\",\n+ \"node_id\": \"MDQ6VXNlcjQ5Mjc1MDk1\",\n+ \"organizations_url\": \"https://api.github.com/users/ursabot/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursabot/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursabot/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursabot/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursabot/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/ursabot\"\n+ }\n+}"+ },+ {+ "sha": "a8082dbc91fdfe815b795e49ec10e49000771ef5",+ "filename": "ursabot/tests/fixtures/issue-comment-not-mentioning-ursabot.json",+ "status": "added",+ "additions": 212,+ "deletions": 0,+ "changes": 212,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-not-mentioning-ursabot.json",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-not-mentioning-ursabot.json",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-not-mentioning-ursabot.json?ref=2705da2b616b98fa6010a25813c5a7a27456f71d",+ "patch": "@@ -0,0 +1,212 @@\n+{\n+ \"action\": \"created\",\n+ \"comment\": {\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"bear is no game\",\n+ \"created_at\": \"2019-04-05T11:26:56Z\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480241727\",\n+ \"id\": 480241727,\n+ \"issue_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"node_id\": \"MDEyOklzc3VlQ29tbWVudDQ4MDI0MTcyNw==\",\n+ \"updated_at\": \"2019-04-05T11:26:56Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480241727\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"issue\": {\n+ \"assignee\": null,\n+ \"assignees\": [],\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"\",\n+ \"closed_at\": null,\n+ \"comments\": 0,\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\",\n+ \"created_at\": \"2019-04-05T11:22:15Z\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/events\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"id\": 429706959,\n+ \"labels\": [],\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}\",\n+ \"locked\": false,\n+ \"milestone\": null,\n+ \"node_id\": \"MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy\",\n+ \"number\": 26,\n+ \"pull_request\": {\n+ \"diff_url\": \"https://github.com/ursa-labs/ursabot/pull/26.diff\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"patch_url\": \"https://github.com/ursa-labs/ursabot/pull/26.patch\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\"\n+ },\n+ \"repository_url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"state\": \"open\",\n+ \"title\": \"Unittests for GithubHook\",\n+ \"updated_at\": \"2019-04-05T11:26:56Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"organization\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"description\": \"Innovation lab for open source data science tools, powered by Apache Arrow\",\n+ \"events_url\": \"https://api.github.com/orgs/ursa-labs/events\",\n+ \"hooks_url\": \"https://api.github.com/orgs/ursa-labs/hooks\",\n+ \"id\": 46514972,\n+ \"issues_url\": \"https://api.github.com/orgs/ursa-labs/issues\",\n+ \"login\": \"ursa-labs\",\n+ \"members_url\": \"https://api.github.com/orgs/ursa-labs/members{/member}\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"public_members_url\": \"https://api.github.com/orgs/ursa-labs/public_members{/member}\",\n+ \"repos_url\": \"https://api.github.com/orgs/ursa-labs/repos\",\n+ \"url\": \"https://api.github.com/orgs/ursa-labs\"\n+ },\n+ \"repository\": {\n+ \"archive_url\": \"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\",\n+ \"archived\": false,\n+ \"assignees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\",\n+ \"blobs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\",\n+ \"branches_url\": \"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\",\n+ \"clone_url\": \"https://github.com/ursa-labs/ursabot.git\",\n+ \"collaborators_url\": \"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\",\n+ \"commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\",\n+ \"compare_url\": \"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\",\n+ \"contributors_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contributors\",\n+ \"created_at\": \"2019-02-04T15:40:31Z\",\n+ \"default_branch\": \"master\",\n+ \"deployments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/deployments\",\n+ \"description\": null,\n+ \"disabled\": false,\n+ \"downloads_url\": \"https://api.github.com/repos/ursa-labs/ursabot/downloads\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/events\",\n+ \"fork\": false,\n+ \"forks\": 0,\n+ \"forks_count\": 0,\n+ \"forks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/forks\",\n+ \"full_name\": \"ursa-labs/ursabot\",\n+ \"git_commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\",\n+ \"git_refs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\",\n+ \"git_tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\",\n+ \"git_url\": \"git://github.com/ursa-labs/ursabot.git\",\n+ \"has_downloads\": true,\n+ \"has_issues\": true,\n+ \"has_pages\": false,\n+ \"has_projects\": true,\n+ \"has_wiki\": true,\n+ \"homepage\": null,\n+ \"hooks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/hooks\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"id\": 169101701,\n+ \"issue_comment_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\",\n+ \"issue_events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\",\n+ \"issues_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\",\n+ \"keys_url\": \"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\",\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\",\n+ \"language\": \"Jupyter Notebook\",\n+ \"languages_url\": \"https://api.github.com/repos/ursa-labs/ursabot/languages\",\n+ \"license\": null,\n+ \"merges_url\": \"https://api.github.com/repos/ursa-labs/ursabot/merges\",\n+ \"milestones_url\": \"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\",\n+ \"mirror_url\": null,\n+ \"name\": \"ursabot\",\n+ \"node_id\": \"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\",\n+ \"notifications_url\": \"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\",\n+ \"open_issues\": 19,\n+ \"open_issues_count\": 19,\n+ \"owner\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"id\": 46514972,\n+ \"login\": \"ursa-labs\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"type\": \"Organization\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\"\n+ },\n+ \"private\": false,\n+ \"pulls_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\",\n+ \"pushed_at\": \"2019-04-05T11:22:16Z\",\n+ \"releases_url\": \"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\",\n+ \"size\": 892,\n+ \"ssh_url\": \"[email protected]:ursa-labs/ursabot.git\",\n+ \"stargazers_count\": 1,\n+ \"stargazers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/stargazers\",\n+ \"statuses_url\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\",\n+ \"subscribers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscribers\",\n+ \"subscription_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscription\",\n+ \"svn_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/tags\",\n+ \"teams_url\": \"https://api.github.com/repos/ursa-labs/ursabot/teams\",\n+ \"trees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\",\n+ \"updated_at\": \"2019-04-04T17:49:10Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"watchers\": 1,\n+ \"watchers_count\": 1\n+ },\n+ \"sender\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+}"+ },+ {+ "sha": "2770e29ba9086394455315e590c0b433d08e437e",+ "filename": "ursabot/tests/fixtures/issue-comment-with-empty-command.json",+ "status": "added",+ "additions": 212,+ "deletions": 0,+ "changes": 212,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-with-empty-command.json",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-with-empty-command.json",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-with-empty-command.json?ref=2705da2b616b98fa6010a25813c5a7a27456f71d",+ "patch": "@@ -0,0 +1,212 @@\n+{\n+ \"action\": \"created\",\n+ \"comment\": {\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"@ursabot \",\n+ \"created_at\": \"2019-04-05T11:35:46Z\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480243811\",\n+ \"id\": 480243811,\n+ \"issue_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"node_id\": \"MDEyOklzc3VlQ29tbWVudDQ4MDI0MzgxMQ==\",\n+ \"updated_at\": \"2019-04-05T11:35:46Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480243811\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"issue\": {\n+ \"assignee\": null,\n+ \"assignees\": [],\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"\",\n+ \"closed_at\": null,\n+ \"comments\": 1,\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\",\n+ \"created_at\": \"2019-04-05T11:22:15Z\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/events\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"id\": 429706959,\n+ \"labels\": [],\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}\",\n+ \"locked\": false,\n+ \"milestone\": null,\n+ \"node_id\": \"MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy\",\n+ \"number\": 26,\n+ \"pull_request\": {\n+ \"diff_url\": \"https://github.com/ursa-labs/ursabot/pull/26.diff\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"patch_url\": \"https://github.com/ursa-labs/ursabot/pull/26.patch\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\"\n+ },\n+ \"repository_url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"state\": \"open\",\n+ \"title\": \"Unittests for GithubHook\",\n+ \"updated_at\": \"2019-04-05T11:35:46Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"organization\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"description\": \"Innovation lab for open source data science tools, powered by Apache Arrow\",\n+ \"events_url\": \"https://api.github.com/orgs/ursa-labs/events\",\n+ \"hooks_url\": \"https://api.github.com/orgs/ursa-labs/hooks\",\n+ \"id\": 46514972,\n+ \"issues_url\": \"https://api.github.com/orgs/ursa-labs/issues\",\n+ \"login\": \"ursa-labs\",\n+ \"members_url\": \"https://api.github.com/orgs/ursa-labs/members{/member}\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"public_members_url\": \"https://api.github.com/orgs/ursa-labs/public_members{/member}\",\n+ \"repos_url\": \"https://api.github.com/orgs/ursa-labs/repos\",\n+ \"url\": \"https://api.github.com/orgs/ursa-labs\"\n+ },\n+ \"repository\": {\n+ \"archive_url\": \"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\",\n+ \"archived\": false,\n+ \"assignees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\",\n+ \"blobs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\",\n+ \"branches_url\": \"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\",\n+ \"clone_url\": \"https://github.com/ursa-labs/ursabot.git\",\n+ \"collaborators_url\": \"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\",\n+ \"commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\",\n+ \"compare_url\": \"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\",\n+ \"contributors_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contributors\",\n+ \"created_at\": \"2019-02-04T15:40:31Z\",\n+ \"default_branch\": \"master\",\n+ \"deployments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/deployments\",\n+ \"description\": null,\n+ \"disabled\": false,\n+ \"downloads_url\": \"https://api.github.com/repos/ursa-labs/ursabot/downloads\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/events\",\n+ \"fork\": false,\n+ \"forks\": 0,\n+ \"forks_count\": 0,\n+ \"forks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/forks\",\n+ \"full_name\": \"ursa-labs/ursabot\",\n+ \"git_commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\",\n+ \"git_refs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\",\n+ \"git_tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\",\n+ \"git_url\": \"git://github.com/ursa-labs/ursabot.git\",\n+ \"has_downloads\": true,\n+ \"has_issues\": true,\n+ \"has_pages\": false,\n+ \"has_projects\": true,\n+ \"has_wiki\": true,\n+ \"homepage\": null,\n+ \"hooks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/hooks\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"id\": 169101701,\n+ \"issue_comment_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\",\n+ \"issue_events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\",\n+ \"issues_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\",\n+ \"keys_url\": \"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\",\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\",\n+ \"language\": \"Jupyter Notebook\",\n+ \"languages_url\": \"https://api.github.com/repos/ursa-labs/ursabot/languages\",\n+ \"license\": null,\n+ \"merges_url\": \"https://api.github.com/repos/ursa-labs/ursabot/merges\",\n+ \"milestones_url\": \"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\",\n+ \"mirror_url\": null,\n+ \"name\": \"ursabot\",\n+ \"node_id\": \"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\",\n+ \"notifications_url\": \"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\",\n+ \"open_issues\": 19,\n+ \"open_issues_count\": 19,\n+ \"owner\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"id\": 46514972,\n+ \"login\": \"ursa-labs\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"type\": \"Organization\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\"\n+ },\n+ \"private\": false,\n+ \"pulls_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\",\n+ \"pushed_at\": \"2019-04-05T11:22:16Z\",\n+ \"releases_url\": \"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\",\n+ \"size\": 892,\n+ \"ssh_url\": \"[email protected]:ursa-labs/ursabot.git\",\n+ \"stargazers_count\": 1,\n+ \"stargazers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/stargazers\",\n+ \"statuses_url\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\",\n+ \"subscribers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscribers\",\n+ \"subscription_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscription\",\n+ \"svn_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/tags\",\n+ \"teams_url\": \"https://api.github.com/repos/ursa-labs/ursabot/teams\",\n+ \"trees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\",\n+ \"updated_at\": \"2019-04-04T17:49:10Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"watchers\": 1,\n+ \"watchers_count\": 1\n+ },\n+ \"sender\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+}"+ },+ {+ "sha": "80ff46510a2f39ae60f7c3a98e5fdaef8e688784",+ "filename": "ursabot/tests/fixtures/issue-comment-without-pull-request.json",+ "status": "added",+ "additions": 206,+ "deletions": 0,+ "changes": 206,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-without-pull-request.json",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-without-pull-request.json",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-without-pull-request.json?ref=2705da2b616b98fa6010a25813c5a7a27456f71d",+ "patch": "@@ -0,0 +1,206 @@\n+{\n+ \"action\": \"created\",\n+ \"comment\": {\n+ \"author_association\": \"NONE\",\n+ \"body\": \"Ursabot only listens to pull request comments!\",\n+ \"created_at\": \"2019-04-05T11:53:43Z\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/issues/19#issuecomment-480248217\",\n+ \"id\": 480248217,\n+ \"issue_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/19\",\n+ \"node_id\": \"MDEyOklzc3VlQ29tbWVudDQ4MDI0ODIxNw==\",\n+ \"updated_at\": \"2019-04-05T11:53:43Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480248217\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/49275095?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursabot/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursabot/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursabot/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursabot/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursabot\",\n+ \"id\": 49275095,\n+ \"login\": \"ursabot\",\n+ \"node_id\": \"MDQ6VXNlcjQ5Mjc1MDk1\",\n+ \"organizations_url\": \"https://api.github.com/users/ursabot/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursabot/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursabot/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursabot/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursabot/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/ursabot\"\n+ }\n+ },\n+ \"issue\": {\n+ \"assignee\": null,\n+ \"assignees\": [],\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"\",\n+ \"closed_at\": null,\n+ \"comments\": 4,\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/19/comments\",\n+ \"created_at\": \"2019-04-02T09:56:41Z\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/19/events\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/issues/19\",\n+ \"id\": 428131685,\n+ \"labels\": [],\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/19/labels{/name}\",\n+ \"locked\": false,\n+ \"milestone\": null,\n+ \"node_id\": \"MDU6SXNzdWU0MjgxMzE2ODU=\",\n+ \"number\": 19,\n+ \"repository_url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"state\": \"open\",\n+ \"title\": \"Build ursabot itself via ursabot\",\n+ \"updated_at\": \"2019-04-05T11:53:43Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/19\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"organization\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"description\": \"Innovation lab for open source data science tools, powered by Apache Arrow\",\n+ \"events_url\": \"https://api.github.com/orgs/ursa-labs/events\",\n+ \"hooks_url\": \"https://api.github.com/orgs/ursa-labs/hooks\",\n+ \"id\": 46514972,\n+ \"issues_url\": \"https://api.github.com/orgs/ursa-labs/issues\",\n+ \"login\": \"ursa-labs\",\n+ \"members_url\": \"https://api.github.com/orgs/ursa-labs/members{/member}\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"public_members_url\": \"https://api.github.com/orgs/ursa-labs/public_members{/member}\",\n+ \"repos_url\": \"https://api.github.com/orgs/ursa-labs/repos\",\n+ \"url\": \"https://api.github.com/orgs/ursa-labs\"\n+ },\n+ \"repository\": {\n+ \"archive_url\": \"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\",\n+ \"archived\": false,\n+ \"assignees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\",\n+ \"blobs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\",\n+ \"branches_url\": \"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\",\n+ \"clone_url\": \"https://github.com/ursa-labs/ursabot.git\",\n+ \"collaborators_url\": \"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\",\n+ \"commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\",\n+ \"compare_url\": \"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\",\n+ \"contributors_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contributors\",\n+ \"created_at\": \"2019-02-04T15:40:31Z\",\n+ \"default_branch\": \"master\",\n+ \"deployments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/deployments\",\n+ \"description\": null,\n+ \"disabled\": false,\n+ \"downloads_url\": \"https://api.github.com/repos/ursa-labs/ursabot/downloads\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/events\",\n+ \"fork\": false,\n+ \"forks\": 0,\n+ \"forks_count\": 0,\n+ \"forks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/forks\",\n+ \"full_name\": \"ursa-labs/ursabot\",\n+ \"git_commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\",\n+ \"git_refs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\",\n+ \"git_tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\",\n+ \"git_url\": \"git://github.com/ursa-labs/ursabot.git\",\n+ \"has_downloads\": true,\n+ \"has_issues\": true,\n+ \"has_pages\": false,\n+ \"has_projects\": true,\n+ \"has_wiki\": true,\n+ \"homepage\": null,\n+ \"hooks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/hooks\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"id\": 169101701,\n+ \"issue_comment_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\",\n+ \"issue_events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\",\n+ \"issues_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\",\n+ \"keys_url\": \"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\",\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\",\n+ \"language\": \"Jupyter Notebook\",\n+ \"languages_url\": \"https://api.github.com/repos/ursa-labs/ursabot/languages\",\n+ \"license\": null,\n+ \"merges_url\": \"https://api.github.com/repos/ursa-labs/ursabot/merges\",\n+ \"milestones_url\": \"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\",\n+ \"mirror_url\": null,\n+ \"name\": \"ursabot\",\n+ \"node_id\": \"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\",\n+ \"notifications_url\": \"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\",\n+ \"open_issues\": 19,\n+ \"open_issues_count\": 19,\n+ \"owner\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"id\": 46514972,\n+ \"login\": \"ursa-labs\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"type\": \"Organization\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\"\n+ },\n+ \"private\": false,\n+ \"pulls_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\",\n+ \"pushed_at\": \"2019-04-05T11:22:16Z\",\n+ \"releases_url\": \"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\",\n+ \"size\": 892,\n+ \"ssh_url\": \"[email protected]:ursa-labs/ursabot.git\",\n+ \"stargazers_count\": 1,\n+ \"stargazers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/stargazers\",\n+ \"statuses_url\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\",\n+ \"subscribers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscribers\",\n+ \"subscription_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscription\",\n+ \"svn_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/tags\",\n+ \"teams_url\": \"https://api.github.com/repos/ursa-labs/ursabot/teams\",\n+ \"trees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\",\n+ \"updated_at\": \"2019-04-04T17:49:10Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"watchers\": 1,\n+ \"watchers_count\": 1\n+ },\n+ \"sender\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/49275095?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursabot/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursabot/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursabot/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursabot/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursabot\",\n+ \"id\": 49275095,\n+ \"login\": \"ursabot\",\n+ \"node_id\": \"MDQ6VXNlcjQ5Mjc1MDk1\",\n+ \"organizations_url\": \"https://api.github.com/users/ursabot/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursabot/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursabot/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursabot/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursabot/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/ursabot\"\n+ }\n+}"+ },+ {+ "sha": "c738bb0eb54c87ba0f23e97e827d77c2be74d0b6",+ "filename": "ursabot/tests/test_hooks.py",+ "status": "modified",+ "additions": 4,+ "deletions": 4,+ "changes": 8,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/test_hooks.py",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/test_hooks.py",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/test_hooks.py?ref=2705da2b616b98fa6010a25813c5a7a27456f71d",+ "patch": "@@ -54,7 +54,7 @@ class TestGithubHook(ChangeHookTestCase):\n await self.request('ping', {})\n assert len(self.hook.master.data.updates.changesAdded) == 0\n \n- @ensure_deferred\n- async def test_issue_comment(self):\n- payload = {}\n- await self.request('issue_comment', payload)\n+ # @ensure_deferred\n+ # async def test_issue_comment(self):\n+ # payload = {}\n+ # await self.request('issue_comment', payload)"+ }+ ]+}\ No newline at end of filediff --git a/dev/archery/archery/tests/fixtures/pull-request-26-files.json b/dev/archery/archery/tests/fixtures/pull-request-26-files.jsonnew file mode 100644index 0000000000..b039b3d105--- /dev/null+++ b/dev/archery/archery/tests/fixtures/pull-request-26-files.json@@ -0,0 +1,170 @@+[+ {+ "sha": "ebfe3f6c5e98723f9751c99ce8ce798f1ba529c5",+ "filename": ".travis.yml",+ "status": "modified",+ "additions": 4,+ "deletions": 1,+ "changes": 5,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/.travis.yml",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/.travis.yml",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/.travis.yml?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -4,7 +4,10 @@ services:\n python:\n - 3.6\n script:\n- - pip install \"pytest>=3.9\" flake8 -e .\n+ # --no-binary buildbot is required because buildbot doesn't bundle its tests\n+ # to binary wheels, but ursabot's test suite depends on buildbot's so install\n+ # it from source\n+ - pip install --no-binary buildbot \"pytest>=3.9\" mock flake8 -e .\n \n # run linter\n - flake8 ursabot"+ },+ {+ "sha": "86ad809d3f74c175b92ac58c6c645b0fbf5fa2c5",+ "filename": "setup.py",+ "status": "modified",+ "additions": 6,+ "deletions": 1,+ "changes": 7,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/setup.py",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/setup.py",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/setup.py?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -1,8 +1,13 @@\n #!/usr/bin/env python\n \n+import sys\n from setuptools import setup\n \n \n+if sys.version_info < (3, 6):\n+ sys.exit('Python < 3.6 is not supported due to missing asyncio support')\n+\n+\n # TODO(kszucs): add package data, change maintainer\n setup(\n name='ursabot',\n@@ -15,7 +20,7 @@\n setup_requires=['setuptools_scm'],\n install_requires=['click', 'dask', 'docker', 'docker-map', 'toolz',\n 'buildbot', 'treq'],\n- tests_require=['pytest>=3.9'],\n+ tests_require=['pytest>=3.9', 'mock'],\n entry_points='''\n [console_scripts]\n ursabot=ursabot.cli:ursabot"+ },+ {+ "sha": "c884f3f85bba499d77d9ad28bcd0ff5edf80f957",+ "filename": "ursabot/factories.py",+ "status": "modified",+ "additions": 6,+ "deletions": 2,+ "changes": 8,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/factories.py",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/factories.py",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/factories.py?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -79,8 +79,12 @@ def prepend_step(self, step):\n repourl='https://github.com/ursa-labs/ursabot',\n mode='full'),\n ShellCommand(command=['ls', '-lah']),\n- ShellCommand(command=['pip', 'install', 'pytest', 'flake8']),\n- ShellCommand(command=['pip', 'install', '-e', '.']),\n+ ShellCommand(command=['pip', 'install', 'pytest', 'flake8', 'mock']),\n+ # --no-binary buildbot is required because buildbot doesn't bundle its\n+ # tests to binary wheels, but ursabot's test suite depends on buildbot's\n+ # so install it from source\n+ ShellCommand(command=['pip', 'install', '--no-binary', 'buildbot',\n+ '-e', '.']),\n ShellCommand(command=['flake8']),\n ShellCommand(command=['pytest', '-v', '-m', 'not docker', 'ursabot']),\n ShellCommand(command=['buildbot', 'checkconfig', '.'])"+ },+ {+ "sha": "0265cfbd9c2882f492469882a7bf513a1c1b5af4",+ "filename": "ursabot/hooks.py",+ "status": "modified",+ "additions": 17,+ "deletions": 19,+ "changes": 36,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/hooks.py",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/hooks.py",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/hooks.py?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -1,11 +1,11 @@\n from urllib.parse import urlparse\n \n from twisted.python import log\n-from twisted.internet import defer\n \n from buildbot.www.hooks.github import GitHubEventHandler\n from buildbot.util.httpclientservice import HTTPClientService\n \n+from .utils import ensure_deferred\n \n BOTNAME = 'ursabot'\n \n@@ -22,20 +22,18 @@ def _client(self):\n self.master, self.github_api_endpoint, headers=headers,\n debug=self.debug, verify=self.verify)\n \n- @defer.inlineCallbacks\n- def _get(self, url):\n+ async def _get(self, url):\n url = urlparse(url)\n- client = yield self._client()\n- response = yield client.get(url.path)\n- result = yield response.json()\n+ client = await self._client()\n+ response = await client.get(url.path)\n+ result = await response.json()\n return result\n \n- @defer.inlineCallbacks\n- def _post(self, url, data):\n+ async def _post(self, url, data):\n url = urlparse(url)\n- client = yield self._client()\n- response = yield client.post(url.path, json=data)\n- result = yield response.json()\n+ client = await self._client()\n+ response = await client.post(url.path, json=data)\n+ result = await response.json()\n log.msg(f'POST to {url} with the following result: {result}')\n return result\n \n@@ -46,8 +44,8 @@ def _parse_command(self, message):\n return message.split(mention)[-1].lower().strip()\n return None\n \n- @defer.inlineCallbacks\n- def handle_issue_comment(self, payload, event):\n+ @ensure_deferred\n+ async def handle_issue_comment(self, payload, event):\n issue = payload['issue']\n comments_url = issue['comments_url']\n command = self._parse_command(payload['comment']['body'])\n@@ -64,16 +62,16 @@ def handle_issue_comment(self, payload, event):\n elif command == 'build':\n if 'pull_request' not in issue:\n message = 'Ursabot only listens to pull request comments!'\n- yield self._post(comments_url, {'body': message})\n+ await self._post(comments_url, {'body': message})\n return [], 'git'\n else:\n message = f'Unknown command \"{command}\"'\n- yield self._post(comments_url, {'body': message})\n+ await self._post(comments_url, {'body': message})\n return [], 'git'\n \n try:\n- pull_request = yield self._get(issue['pull_request']['url'])\n- changes, _ = yield self.handle_pull_request({\n+ pull_request = await self._get(issue['pull_request']['url'])\n+ changes, _ = await self.handle_pull_request({\n 'action': 'synchronize',\n 'sender': payload['sender'],\n 'repository': payload['repository'],\n@@ -82,11 +80,11 @@ def handle_issue_comment(self, payload, event):\n }, event)\n except Exception as e:\n message = \"I've failed to start builds for this PR\"\n- yield self._post(comments_url, {'body': message})\n+ await self._post(comments_url, {'body': message})\n raise e\n else:\n message = \"I've successfully started builds for this PR\"\n- yield self._post(comments_url, {'body': message})\n+ await self._post(comments_url, {'body': message})\n return changes, 'git'\n \n # TODO(kszucs):"+ },+ {+ "sha": "1e1ecf2ce47da929dbf1b93632640e7e6ae1cfe0",+ "filename": "ursabot/steps.py",+ "status": "modified",+ "additions": 13,+ "deletions": 13,+ "changes": 26,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/steps.py",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/steps.py",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/steps.py?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -1,9 +1,9 @@\n-from twisted.internet import defer\n-\n from buildbot.plugins import steps, util\n from buildbot.process import buildstep\n from buildbot.process.results import SUCCESS\n \n+from .utils import ensure_deferred\n+\n \n class ShellMixin(buildstep.ShellMixin):\n \"\"\"Run command in a login bash shell\n@@ -49,10 +49,10 @@ def __init__(self, **kwargs):\n kwargs = self.setupShellMixin(kwargs)\n super().__init__(**kwargs)\n \n- @defer.inlineCallbacks\n- def run(self):\n- cmd = yield self.makeRemoteShellCommand(command=self.command)\n- yield self.runCommand(cmd)\n+ @ensure_deferred\n+ async def run(self):\n+ cmd = await self.makeRemoteShellCommand(command=self.command)\n+ await self.runCommand(cmd)\n return cmd.results()\n \n \n@@ -71,8 +71,8 @@ class CMake(ShellMixin, steps.CMake):\n \n name = 'CMake'\n \n- @defer.inlineCallbacks\n- def run(self):\n+ @ensure_deferred\n+ async def run(self):\n \"\"\"Create and run CMake command\n \n Copied from the original CMake implementation to handle None values as\n@@ -94,8 +94,8 @@ def run(self):\n if self.options is not None:\n command.extend(self.options)\n \n- cmd = yield self.makeRemoteShellCommand(command=command)\n- yield self.runCommand(cmd)\n+ cmd = await self.makeRemoteShellCommand(command=command)\n+ await self.runCommand(cmd)\n \n return cmd.results()\n \n@@ -117,8 +117,8 @@ def __init__(self, variables, source='WorkerEnvironment', **kwargs):\n self.source = source\n super().__init__(**kwargs)\n \n- @defer.inlineCallbacks\n- def run(self):\n+ @ensure_deferred\n+ async def run(self):\n # on Windows, environment variables are case-insensitive, but we have\n # a case-sensitive dictionary in worker_environ. Fortunately, that\n # dictionary is also folded to uppercase, so we can simply fold the\n@@ -139,7 +139,7 @@ def run(self):\n # TODO(kszucs) try with self.setProperty similarly like in\n # SetProperties\n properties.setProperty(prop, value, self.source, runtime=True)\n- yield self.addCompleteLog('set-prop', f'{prop}: {value}')\n+ await self.addCompleteLog('set-prop', f'{prop}: {value}')\n \n return SUCCESS\n "+ },+ {+ "sha": "6a7d5308be6608f542a810d410f9240157a1340f",+ "filename": "ursabot/tests/fixtures/issue-comment-build-command.json",+ "status": "added",+ "additions": 212,+ "deletions": 0,+ "changes": 212,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/issue-comment-build-command.json",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/issue-comment-build-command.json",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-build-command.json?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -0,0 +1,212 @@\n+{\n+ \"action\": \"created\",\n+ \"comment\": {\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"@ursabot build\",\n+ \"created_at\": \"2019-04-05T11:55:43Z\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480248726\",\n+ \"id\": 480248726,\n+ \"issue_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"node_id\": \"MDEyOklzc3VlQ29tbWVudDQ4MDI0ODcyNg==\",\n+ \"updated_at\": \"2019-04-05T11:55:43Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480248726\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"issue\": {\n+ \"assignee\": null,\n+ \"assignees\": [],\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"\",\n+ \"closed_at\": null,\n+ \"comments\": 3,\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\",\n+ \"created_at\": \"2019-04-05T11:22:15Z\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/events\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"id\": 429706959,\n+ \"labels\": [],\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}\",\n+ \"locked\": false,\n+ \"milestone\": null,\n+ \"node_id\": \"MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy\",\n+ \"number\": 26,\n+ \"pull_request\": {\n+ \"diff_url\": \"https://github.com/ursa-labs/ursabot/pull/26.diff\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"patch_url\": \"https://github.com/ursa-labs/ursabot/pull/26.patch\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\"\n+ },\n+ \"repository_url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"state\": \"open\",\n+ \"title\": \"Unittests for GithubHook\",\n+ \"updated_at\": \"2019-04-05T11:55:43Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"organization\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"description\": \"Innovation lab for open source data science tools, powered by Apache Arrow\",\n+ \"events_url\": \"https://api.github.com/orgs/ursa-labs/events\",\n+ \"hooks_url\": \"https://api.github.com/orgs/ursa-labs/hooks\",\n+ \"id\": 46514972,\n+ \"issues_url\": \"https://api.github.com/orgs/ursa-labs/issues\",\n+ \"login\": \"ursa-labs\",\n+ \"members_url\": \"https://api.github.com/orgs/ursa-labs/members{/member}\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"public_members_url\": \"https://api.github.com/orgs/ursa-labs/public_members{/member}\",\n+ \"repos_url\": \"https://api.github.com/orgs/ursa-labs/repos\",\n+ \"url\": \"https://api.github.com/orgs/ursa-labs\"\n+ },\n+ \"repository\": {\n+ \"archive_url\": \"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\",\n+ \"archived\": false,\n+ \"assignees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\",\n+ \"blobs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\",\n+ \"branches_url\": \"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\",\n+ \"clone_url\": \"https://github.com/ursa-labs/ursabot.git\",\n+ \"collaborators_url\": \"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\",\n+ \"commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\",\n+ \"compare_url\": \"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\",\n+ \"contributors_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contributors\",\n+ \"created_at\": \"2019-02-04T15:40:31Z\",\n+ \"default_branch\": \"master\",\n+ \"deployments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/deployments\",\n+ \"description\": null,\n+ \"disabled\": false,\n+ \"downloads_url\": \"https://api.github.com/repos/ursa-labs/ursabot/downloads\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/events\",\n+ \"fork\": false,\n+ \"forks\": 0,\n+ \"forks_count\": 0,\n+ \"forks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/forks\",\n+ \"full_name\": \"ursa-labs/ursabot\",\n+ \"git_commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\",\n+ \"git_refs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\",\n+ \"git_tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\",\n+ \"git_url\": \"git://github.com/ursa-labs/ursabot.git\",\n+ \"has_downloads\": true,\n+ \"has_issues\": true,\n+ \"has_pages\": false,\n+ \"has_projects\": true,\n+ \"has_wiki\": true,\n+ \"homepage\": null,\n+ \"hooks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/hooks\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"id\": 169101701,\n+ \"issue_comment_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\",\n+ \"issue_events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\",\n+ \"issues_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\",\n+ \"keys_url\": \"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\",\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\",\n+ \"language\": \"Jupyter Notebook\",\n+ \"languages_url\": \"https://api.github.com/repos/ursa-labs/ursabot/languages\",\n+ \"license\": null,\n+ \"merges_url\": \"https://api.github.com/repos/ursa-labs/ursabot/merges\",\n+ \"milestones_url\": \"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\",\n+ \"mirror_url\": null,\n+ \"name\": \"ursabot\",\n+ \"node_id\": \"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\",\n+ \"notifications_url\": \"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\",\n+ \"open_issues\": 19,\n+ \"open_issues_count\": 19,\n+ \"owner\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"id\": 46514972,\n+ \"login\": \"ursa-labs\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"type\": \"Organization\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\"\n+ },\n+ \"private\": false,\n+ \"pulls_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\",\n+ \"pushed_at\": \"2019-04-05T11:22:16Z\",\n+ \"releases_url\": \"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\",\n+ \"size\": 892,\n+ \"ssh_url\": \"[email protected]:ursa-labs/ursabot.git\",\n+ \"stargazers_count\": 1,\n+ \"stargazers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/stargazers\",\n+ \"statuses_url\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\",\n+ \"subscribers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscribers\",\n+ \"subscription_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscription\",\n+ \"svn_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/tags\",\n+ \"teams_url\": \"https://api.github.com/repos/ursa-labs/ursabot/teams\",\n+ \"trees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\",\n+ \"updated_at\": \"2019-04-04T17:49:10Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"watchers\": 1,\n+ \"watchers_count\": 1\n+ },\n+ \"sender\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+}"+ },+ {+ "sha": "7ef554e333327f0e62aa1fd76b4b17844a39adeb",+ "filename": "ursabot/tests/fixtures/issue-comment-by-ursabot.json",+ "status": "added",+ "additions": 212,+ "deletions": 0,+ "changes": 212,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/issue-comment-by-ursabot.json",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/issue-comment-by-ursabot.json",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-by-ursabot.json?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -0,0 +1,212 @@\n+{\n+ \"action\": \"created\",\n+ \"comment\": {\n+ \"author_association\": \"NONE\",\n+ \"body\": \"Unknown command \\\"\\\"\",\n+ \"created_at\": \"2019-04-05T11:35:47Z\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480243815\",\n+ \"id\": 480243815,\n+ \"issue_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"node_id\": \"MDEyOklzc3VlQ29tbWVudDQ4MDI0MzgxNQ==\",\n+ \"updated_at\": \"2019-04-05T11:35:47Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480243815\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/49275095?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursabot/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursabot/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursabot/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursabot/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursabot\",\n+ \"id\": 49275095,\n+ \"login\": \"ursabot\",\n+ \"node_id\": \"MDQ6VXNlcjQ5Mjc1MDk1\",\n+ \"organizations_url\": \"https://api.github.com/users/ursabot/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursabot/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursabot/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursabot/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursabot/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/ursabot\"\n+ }\n+ },\n+ \"issue\": {\n+ \"assignee\": null,\n+ \"assignees\": [],\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"\",\n+ \"closed_at\": null,\n+ \"comments\": 2,\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\",\n+ \"created_at\": \"2019-04-05T11:22:15Z\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/events\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"id\": 429706959,\n+ \"labels\": [],\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}\",\n+ \"locked\": false,\n+ \"milestone\": null,\n+ \"node_id\": \"MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy\",\n+ \"number\": 26,\n+ \"pull_request\": {\n+ \"diff_url\": \"https://github.com/ursa-labs/ursabot/pull/26.diff\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"patch_url\": \"https://github.com/ursa-labs/ursabot/pull/26.patch\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\"\n+ },\n+ \"repository_url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"state\": \"open\",\n+ \"title\": \"Unittests for GithubHook\",\n+ \"updated_at\": \"2019-04-05T11:35:47Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"organization\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"description\": \"Innovation lab for open source data science tools, powered by Apache Arrow\",\n+ \"events_url\": \"https://api.github.com/orgs/ursa-labs/events\",\n+ \"hooks_url\": \"https://api.github.com/orgs/ursa-labs/hooks\",\n+ \"id\": 46514972,\n+ \"issues_url\": \"https://api.github.com/orgs/ursa-labs/issues\",\n+ \"login\": \"ursa-labs\",\n+ \"members_url\": \"https://api.github.com/orgs/ursa-labs/members{/member}\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"public_members_url\": \"https://api.github.com/orgs/ursa-labs/public_members{/member}\",\n+ \"repos_url\": \"https://api.github.com/orgs/ursa-labs/repos\",\n+ \"url\": \"https://api.github.com/orgs/ursa-labs\"\n+ },\n+ \"repository\": {\n+ \"archive_url\": \"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\",\n+ \"archived\": false,\n+ \"assignees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\",\n+ \"blobs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\",\n+ \"branches_url\": \"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\",\n+ \"clone_url\": \"https://github.com/ursa-labs/ursabot.git\",\n+ \"collaborators_url\": \"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\",\n+ \"commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\",\n+ \"compare_url\": \"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\",\n+ \"contributors_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contributors\",\n+ \"created_at\": \"2019-02-04T15:40:31Z\",\n+ \"default_branch\": \"master\",\n+ \"deployments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/deployments\",\n+ \"description\": null,\n+ \"disabled\": false,\n+ \"downloads_url\": \"https://api.github.com/repos/ursa-labs/ursabot/downloads\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/events\",\n+ \"fork\": false,\n+ \"forks\": 0,\n+ \"forks_count\": 0,\n+ \"forks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/forks\",\n+ \"full_name\": \"ursa-labs/ursabot\",\n+ \"git_commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\",\n+ \"git_refs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\",\n+ \"git_tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\",\n+ \"git_url\": \"git://github.com/ursa-labs/ursabot.git\",\n+ \"has_downloads\": true,\n+ \"has_issues\": true,\n+ \"has_pages\": false,\n+ \"has_projects\": true,\n+ \"has_wiki\": true,\n+ \"homepage\": null,\n+ \"hooks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/hooks\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"id\": 169101701,\n+ \"issue_comment_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\",\n+ \"issue_events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\",\n+ \"issues_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\",\n+ \"keys_url\": \"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\",\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\",\n+ \"language\": \"Jupyter Notebook\",\n+ \"languages_url\": \"https://api.github.com/repos/ursa-labs/ursabot/languages\",\n+ \"license\": null,\n+ \"merges_url\": \"https://api.github.com/repos/ursa-labs/ursabot/merges\",\n+ \"milestones_url\": \"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\",\n+ \"mirror_url\": null,\n+ \"name\": \"ursabot\",\n+ \"node_id\": \"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\",\n+ \"notifications_url\": \"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\",\n+ \"open_issues\": 19,\n+ \"open_issues_count\": 19,\n+ \"owner\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"id\": 46514972,\n+ \"login\": \"ursa-labs\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"type\": \"Organization\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\"\n+ },\n+ \"private\": false,\n+ \"pulls_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\",\n+ \"pushed_at\": \"2019-04-05T11:22:16Z\",\n+ \"releases_url\": \"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\",\n+ \"size\": 892,\n+ \"ssh_url\": \"[email protected]:ursa-labs/ursabot.git\",\n+ \"stargazers_count\": 1,\n+ \"stargazers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/stargazers\",\n+ \"statuses_url\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\",\n+ \"subscribers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscribers\",\n+ \"subscription_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscription\",\n+ \"svn_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/tags\",\n+ \"teams_url\": \"https://api.github.com/repos/ursa-labs/ursabot/teams\",\n+ \"trees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\",\n+ \"updated_at\": \"2019-04-04T17:49:10Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"watchers\": 1,\n+ \"watchers_count\": 1\n+ },\n+ \"sender\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/49275095?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursabot/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursabot/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursabot/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursabot/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursabot\",\n+ \"id\": 49275095,\n+ \"login\": \"ursabot\",\n+ \"node_id\": \"MDQ6VXNlcjQ5Mjc1MDk1\",\n+ \"organizations_url\": \"https://api.github.com/users/ursabot/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursabot/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursabot/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursabot/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursabot/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/ursabot\"\n+ }\n+}"+ },+ {+ "sha": "a8082dbc91fdfe815b795e49ec10e49000771ef5",+ "filename": "ursabot/tests/fixtures/issue-comment-not-mentioning-ursabot.json",+ "status": "added",+ "additions": 212,+ "deletions": 0,+ "changes": 212,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/issue-comment-not-mentioning-ursabot.json",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/issue-comment-not-mentioning-ursabot.json",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-not-mentioning-ursabot.json?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -0,0 +1,212 @@\n+{\n+ \"action\": \"created\",\n+ \"comment\": {\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"bear is no game\",\n+ \"created_at\": \"2019-04-05T11:26:56Z\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480241727\",\n+ \"id\": 480241727,\n+ \"issue_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"node_id\": \"MDEyOklzc3VlQ29tbWVudDQ4MDI0MTcyNw==\",\n+ \"updated_at\": \"2019-04-05T11:26:56Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480241727\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"issue\": {\n+ \"assignee\": null,\n+ \"assignees\": [],\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"\",\n+ \"closed_at\": null,\n+ \"comments\": 0,\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\",\n+ \"created_at\": \"2019-04-05T11:22:15Z\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/events\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"id\": 429706959,\n+ \"labels\": [],\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}\",\n+ \"locked\": false,\n+ \"milestone\": null,\n+ \"node_id\": \"MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy\",\n+ \"number\": 26,\n+ \"pull_request\": {\n+ \"diff_url\": \"https://github.com/ursa-labs/ursabot/pull/26.diff\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"patch_url\": \"https://github.com/ursa-labs/ursabot/pull/26.patch\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\"\n+ },\n+ \"repository_url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"state\": \"open\",\n+ \"title\": \"Unittests for GithubHook\",\n+ \"updated_at\": \"2019-04-05T11:26:56Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"organization\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"description\": \"Innovation lab for open source data science tools, powered by Apache Arrow\",\n+ \"events_url\": \"https://api.github.com/orgs/ursa-labs/events\",\n+ \"hooks_url\": \"https://api.github.com/orgs/ursa-labs/hooks\",\n+ \"id\": 46514972,\n+ \"issues_url\": \"https://api.github.com/orgs/ursa-labs/issues\",\n+ \"login\": \"ursa-labs\",\n+ \"members_url\": \"https://api.github.com/orgs/ursa-labs/members{/member}\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"public_members_url\": \"https://api.github.com/orgs/ursa-labs/public_members{/member}\",\n+ \"repos_url\": \"https://api.github.com/orgs/ursa-labs/repos\",\n+ \"url\": \"https://api.github.com/orgs/ursa-labs\"\n+ },\n+ \"repository\": {\n+ \"archive_url\": \"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\",\n+ \"archived\": false,\n+ \"assignees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\",\n+ \"blobs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\",\n+ \"branches_url\": \"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\",\n+ \"clone_url\": \"https://github.com/ursa-labs/ursabot.git\",\n+ \"collaborators_url\": \"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\",\n+ \"commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\",\n+ \"compare_url\": \"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\",\n+ \"contributors_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contributors\",\n+ \"created_at\": \"2019-02-04T15:40:31Z\",\n+ \"default_branch\": \"master\",\n+ \"deployments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/deployments\",\n+ \"description\": null,\n+ \"disabled\": false,\n+ \"downloads_url\": \"https://api.github.com/repos/ursa-labs/ursabot/downloads\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/events\",\n+ \"fork\": false,\n+ \"forks\": 0,\n+ \"forks_count\": 0,\n+ \"forks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/forks\",\n+ \"full_name\": \"ursa-labs/ursabot\",\n+ \"git_commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\",\n+ \"git_refs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\",\n+ \"git_tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\",\n+ \"git_url\": \"git://github.com/ursa-labs/ursabot.git\",\n+ \"has_downloads\": true,\n+ \"has_issues\": true,\n+ \"has_pages\": false,\n+ \"has_projects\": true,\n+ \"has_wiki\": true,\n+ \"homepage\": null,\n+ \"hooks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/hooks\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"id\": 169101701,\n+ \"issue_comment_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\",\n+ \"issue_events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\",\n+ \"issues_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\",\n+ \"keys_url\": \"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\",\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\",\n+ \"language\": \"Jupyter Notebook\",\n+ \"languages_url\": \"https://api.github.com/repos/ursa-labs/ursabot/languages\",\n+ \"license\": null,\n+ \"merges_url\": \"https://api.github.com/repos/ursa-labs/ursabot/merges\",\n+ \"milestones_url\": \"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\",\n+ \"mirror_url\": null,\n+ \"name\": \"ursabot\",\n+ \"node_id\": \"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\",\n+ \"notifications_url\": \"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\",\n+ \"open_issues\": 19,\n+ \"open_issues_count\": 19,\n+ \"owner\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"id\": 46514972,\n+ \"login\": \"ursa-labs\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"type\": \"Organization\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\"\n+ },\n+ \"private\": false,\n+ \"pulls_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\",\n+ \"pushed_at\": \"2019-04-05T11:22:16Z\",\n+ \"releases_url\": \"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\",\n+ \"size\": 892,\n+ \"ssh_url\": \"[email protected]:ursa-labs/ursabot.git\",\n+ \"stargazers_count\": 1,\n+ \"stargazers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/stargazers\",\n+ \"statuses_url\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\",\n+ \"subscribers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscribers\",\n+ \"subscription_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscription\",\n+ \"svn_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/tags\",\n+ \"teams_url\": \"https://api.github.com/repos/ursa-labs/ursabot/teams\",\n+ \"trees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\",\n+ \"updated_at\": \"2019-04-04T17:49:10Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"watchers\": 1,\n+ \"watchers_count\": 1\n+ },\n+ \"sender\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+}"+ },+ {+ "sha": "2770e29ba9086394455315e590c0b433d08e437e",+ "filename": "ursabot/tests/fixtures/issue-comment-with-empty-command.json",+ "status": "added",+ "additions": 212,+ "deletions": 0,+ "changes": 212,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/issue-comment-with-empty-command.json",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/issue-comment-with-empty-command.json",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-with-empty-command.json?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -0,0 +1,212 @@\n+{\n+ \"action\": \"created\",\n+ \"comment\": {\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"@ursabot \",\n+ \"created_at\": \"2019-04-05T11:35:46Z\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480243811\",\n+ \"id\": 480243811,\n+ \"issue_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"node_id\": \"MDEyOklzc3VlQ29tbWVudDQ4MDI0MzgxMQ==\",\n+ \"updated_at\": \"2019-04-05T11:35:46Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480243811\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"issue\": {\n+ \"assignee\": null,\n+ \"assignees\": [],\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"\",\n+ \"closed_at\": null,\n+ \"comments\": 1,\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\",\n+ \"created_at\": \"2019-04-05T11:22:15Z\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/events\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"id\": 429706959,\n+ \"labels\": [],\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}\",\n+ \"locked\": false,\n+ \"milestone\": null,\n+ \"node_id\": \"MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy\",\n+ \"number\": 26,\n+ \"pull_request\": {\n+ \"diff_url\": \"https://github.com/ursa-labs/ursabot/pull/26.diff\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"patch_url\": \"https://github.com/ursa-labs/ursabot/pull/26.patch\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\"\n+ },\n+ \"repository_url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"state\": \"open\",\n+ \"title\": \"Unittests for GithubHook\",\n+ \"updated_at\": \"2019-04-05T11:35:46Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"organization\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"description\": \"Innovation lab for open source data science tools, powered by Apache Arrow\",\n+ \"events_url\": \"https://api.github.com/orgs/ursa-labs/events\",\n+ \"hooks_url\": \"https://api.github.com/orgs/ursa-labs/hooks\",\n+ \"id\": 46514972,\n+ \"issues_url\": \"https://api.github.com/orgs/ursa-labs/issues\",\n+ \"login\": \"ursa-labs\",\n+ \"members_url\": \"https://api.github.com/orgs/ursa-labs/members{/member}\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"public_members_url\": \"https://api.github.com/orgs/ursa-labs/public_members{/member}\",\n+ \"repos_url\": \"https://api.github.com/orgs/ursa-labs/repos\",\n+ \"url\": \"https://api.github.com/orgs/ursa-labs\"\n+ },\n+ \"repository\": {\n+ \"archive_url\": \"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\",\n+ \"archived\": false,\n+ \"assignees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\",\n+ \"blobs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\",\n+ \"branches_url\": \"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\",\n+ \"clone_url\": \"https://github.com/ursa-labs/ursabot.git\",\n+ \"collaborators_url\": \"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\",\n+ \"commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\",\n+ \"compare_url\": \"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\",\n+ \"contributors_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contributors\",\n+ \"created_at\": \"2019-02-04T15:40:31Z\",\n+ \"default_branch\": \"master\",\n+ \"deployments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/deployments\",\n+ \"description\": null,\n+ \"disabled\": false,\n+ \"downloads_url\": \"https://api.github.com/repos/ursa-labs/ursabot/downloads\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/events\",\n+ \"fork\": false,\n+ \"forks\": 0,\n+ \"forks_count\": 0,\n+ \"forks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/forks\",\n+ \"full_name\": \"ursa-labs/ursabot\",\n+ \"git_commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\",\n+ \"git_refs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\",\n+ \"git_tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\",\n+ \"git_url\": \"git://github.com/ursa-labs/ursabot.git\",\n+ \"has_downloads\": true,\n+ \"has_issues\": true,\n+ \"has_pages\": false,\n+ \"has_projects\": true,\n+ \"has_wiki\": true,\n+ \"homepage\": null,\n+ \"hooks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/hooks\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"id\": 169101701,\n+ \"issue_comment_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\",\n+ \"issue_events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\",\n+ \"issues_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\",\n+ \"keys_url\": \"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\",\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\",\n+ \"language\": \"Jupyter Notebook\",\n+ \"languages_url\": \"https://api.github.com/repos/ursa-labs/ursabot/languages\",\n+ \"license\": null,\n+ \"merges_url\": \"https://api.github.com/repos/ursa-labs/ursabot/merges\",\n+ \"milestones_url\": \"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\",\n+ \"mirror_url\": null,\n+ \"name\": \"ursabot\",\n+ \"node_id\": \"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\",\n+ \"notifications_url\": \"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\",\n+ \"open_issues\": 19,\n+ \"open_issues_count\": 19,\n+ \"owner\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"id\": 46514972,\n+ \"login\": \"ursa-labs\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"type\": \"Organization\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\"\n+ },\n+ \"private\": false,\n+ \"pulls_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\",\n+ \"pushed_at\": \"2019-04-05T11:22:16Z\",\n+ \"releases_url\": \"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\",\n+ \"size\": 892,\n+ \"ssh_url\": \"[email protected]:ursa-labs/ursabot.git\",\n+ \"stargazers_count\": 1,\n+ \"stargazers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/stargazers\",\n+ \"statuses_url\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\",\n+ \"subscribers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscribers\",\n+ \"subscription_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscription\",\n+ \"svn_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/tags\",\n+ \"teams_url\": \"https://api.github.com/repos/ursa-labs/ursabot/teams\",\n+ \"trees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\",\n+ \"updated_at\": \"2019-04-04T17:49:10Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"watchers\": 1,\n+ \"watchers_count\": 1\n+ },\n+ \"sender\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+}"+ },+ {+ "sha": "b7de8d838332944101812ee2a46c08dd0144efe3",+ "filename": "ursabot/tests/fixtures/issue-comment-without-pull-request.json",+ "status": "added",+ "additions": 206,+ "deletions": 0,+ "changes": 206,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/issue-comment-without-pull-request.json",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/issue-comment-without-pull-request.json",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-without-pull-request.json?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -0,0 +1,206 @@\n+{\n+ \"action\": \"created\",\n+ \"comment\": {\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"@ursabot build\",\n+ \"created_at\": \"2019-04-05T13:07:57Z\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/issues/19#issuecomment-480268708\",\n+ \"id\": 480268708,\n+ \"issue_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/19\",\n+ \"node_id\": \"MDEyOklzc3VlQ29tbWVudDQ4MDI2ODcwOA==\",\n+ \"updated_at\": \"2019-04-05T13:07:57Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480268708\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"issue\": {\n+ \"assignee\": null,\n+ \"assignees\": [],\n+ \"author_association\": \"MEMBER\",\n+ \"body\": \"\",\n+ \"closed_at\": null,\n+ \"comments\": 5,\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/19/comments\",\n+ \"created_at\": \"2019-04-02T09:56:41Z\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/19/events\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/issues/19\",\n+ \"id\": 428131685,\n+ \"labels\": [],\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/19/labels{/name}\",\n+ \"locked\": false,\n+ \"milestone\": null,\n+ \"node_id\": \"MDU6SXNzdWU0MjgxMzE2ODU=\",\n+ \"number\": 19,\n+ \"repository_url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"state\": \"open\",\n+ \"title\": \"Build ursabot itself via ursabot\",\n+ \"updated_at\": \"2019-04-05T13:07:57Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/19\",\n+ \"user\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+ },\n+ \"organization\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"description\": \"Innovation lab for open source data science tools, powered by Apache Arrow\",\n+ \"events_url\": \"https://api.github.com/orgs/ursa-labs/events\",\n+ \"hooks_url\": \"https://api.github.com/orgs/ursa-labs/hooks\",\n+ \"id\": 46514972,\n+ \"issues_url\": \"https://api.github.com/orgs/ursa-labs/issues\",\n+ \"login\": \"ursa-labs\",\n+ \"members_url\": \"https://api.github.com/orgs/ursa-labs/members{/member}\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"public_members_url\": \"https://api.github.com/orgs/ursa-labs/public_members{/member}\",\n+ \"repos_url\": \"https://api.github.com/orgs/ursa-labs/repos\",\n+ \"url\": \"https://api.github.com/orgs/ursa-labs\"\n+ },\n+ \"repository\": {\n+ \"archive_url\": \"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\",\n+ \"archived\": false,\n+ \"assignees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\",\n+ \"blobs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\",\n+ \"branches_url\": \"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\",\n+ \"clone_url\": \"https://github.com/ursa-labs/ursabot.git\",\n+ \"collaborators_url\": \"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\",\n+ \"commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\",\n+ \"compare_url\": \"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\",\n+ \"contributors_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contributors\",\n+ \"created_at\": \"2019-02-04T15:40:31Z\",\n+ \"default_branch\": \"master\",\n+ \"deployments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/deployments\",\n+ \"description\": null,\n+ \"disabled\": false,\n+ \"downloads_url\": \"https://api.github.com/repos/ursa-labs/ursabot/downloads\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/events\",\n+ \"fork\": false,\n+ \"forks\": 0,\n+ \"forks_count\": 0,\n+ \"forks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/forks\",\n+ \"full_name\": \"ursa-labs/ursabot\",\n+ \"git_commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\",\n+ \"git_refs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\",\n+ \"git_tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\",\n+ \"git_url\": \"git://github.com/ursa-labs/ursabot.git\",\n+ \"has_downloads\": true,\n+ \"has_issues\": true,\n+ \"has_pages\": false,\n+ \"has_projects\": true,\n+ \"has_wiki\": true,\n+ \"homepage\": null,\n+ \"hooks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/hooks\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"id\": 169101701,\n+ \"issue_comment_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\",\n+ \"issue_events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\",\n+ \"issues_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\",\n+ \"keys_url\": \"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\",\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\",\n+ \"language\": \"Jupyter Notebook\",\n+ \"languages_url\": \"https://api.github.com/repos/ursa-labs/ursabot/languages\",\n+ \"license\": null,\n+ \"merges_url\": \"https://api.github.com/repos/ursa-labs/ursabot/merges\",\n+ \"milestones_url\": \"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\",\n+ \"mirror_url\": null,\n+ \"name\": \"ursabot\",\n+ \"node_id\": \"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\",\n+ \"notifications_url\": \"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\",\n+ \"open_issues\": 19,\n+ \"open_issues_count\": 19,\n+ \"owner\": {\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"id\": 46514972,\n+ \"login\": \"ursa-labs\",\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"type\": \"Organization\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\"\n+ },\n+ \"private\": false,\n+ \"pulls_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\",\n+ \"pushed_at\": \"2019-04-05T12:01:40Z\",\n+ \"releases_url\": \"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\",\n+ \"size\": 898,\n+ \"ssh_url\": \"[email protected]:ursa-labs/ursabot.git\",\n+ \"stargazers_count\": 1,\n+ \"stargazers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/stargazers\",\n+ \"statuses_url\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\",\n+ \"subscribers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscribers\",\n+ \"subscription_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscription\",\n+ \"svn_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/tags\",\n+ \"teams_url\": \"https://api.github.com/repos/ursa-labs/ursabot/teams\",\n+ \"trees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\",\n+ \"updated_at\": \"2019-04-04T17:49:10Z\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"watchers\": 1,\n+ \"watchers_count\": 1\n+ },\n+ \"sender\": {\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"gravatar_id\": \"\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"id\": 961747,\n+ \"login\": \"kszucs\",\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"site_admin\": false,\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"type\": \"User\",\n+ \"url\": \"https://api.github.com/users/kszucs\"\n+ }\n+}"+ },+ {+ "sha": "33e051455e866fb4774a16ae02ad40dcf9e6a7fd",+ "filename": "ursabot/tests/fixtures/pull-request-26-commit.json",+ "status": "added",+ "additions": 158,+ "deletions": 0,+ "changes": 158,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/pull-request-26-commit.json",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/pull-request-26-commit.json",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/pull-request-26-commit.json?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -0,0 +1,158 @@\n+{\n+ \"sha\": \"2705da2b616b98fa6010a25813c5a7a27456f71d\",\n+ \"node_id\": \"MDY6Q29tbWl0MTY5MTAxNzAxOjI3MDVkYTJiNjE2Yjk4ZmE2MDEwYTI1ODEzYzVhN2EyNzQ1NmY3MWQ=\",\n+ \"commit\": {\n+ \"author\": {\n+ \"name\": \"Krisztián Szűcs\",\n+ \"email\": \"[email protected]\",\n+ \"date\": \"2019-04-05T12:01:31Z\"\n+ },\n+ \"committer\": {\n+ \"name\": \"Krisztián Szűcs\",\n+ \"email\": \"[email protected]\",\n+ \"date\": \"2019-04-05T12:01:31Z\"\n+ },\n+ \"message\": \"add recorded event requests\",\n+ \"tree\": {\n+ \"sha\": \"16a7bb186833a67e9c2d84a58393503b85500ceb\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/trees/16a7bb186833a67e9c2d84a58393503b85500ceb\"\n+ },\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/commits/2705da2b616b98fa6010a25813c5a7a27456f71d\",\n+ \"comment_count\": 0,\n+ \"verification\": {\n+ \"verified\": true,\n+ \"reason\": \"valid\",\n+ \"signature\": \"-----BEGIN PGP SIGNATURE-----\\n\\niQFOBAABCAA4FiEEOOW2r8dr6sA77zHlgjqBKYe1QKUFAlynQ58aHHN6dWNzLmty\\naXN6dGlhbkBnbWFpbC5jb20ACgkQgjqBKYe1QKUYKwf6AiXDMaLqNLNSjRY7lIXX\\nudioewz0hSb4bgIXBv30nswu9CoOA0+mHCokEVtZhYbXzXDsZ1KJrilSC4j+Ws4q\\nkRGA6iEmrne2HcSKNZXzcVnwV9zpwKxlVh2QCTNb1PuOYFBLH0kwE704uWIWMGDN\\nbo8cjQPwegePCRguCvPh/5wa5J3uiq5gmJLG6bC/d1XYE+FJVtlnyzqzLMIryGKe\\ntIciw+wwkF413Q/YVbZ49vLUeCX9H8PHC4mZYGDWuvjFW1WTfkjK5bAH+oaTVM6h\\n350I5ZFloHmMA/QeRge5qFxXoEBMDGiXHHktzYZDXnliFOQNxzqwirA5lQQ6LRSS\\naQ==\\n=7rqi\\n-----END PGP SIGNATURE-----\",\n+ \"payload\": \"tree 16a7bb186833a67e9c2d84a58393503b85500ceb\\nparent 446ae69b9385e8d0f40aa9595f723d34383af2f7\\nauthor Krisztián Szűcs <[email protected]> 1554465691 +0200\\ncommitter Krisztián Szűcs <[email protected]> 1554465691 +0200\\n\\nadd recorded event requests\\n\"\n+ }\n+ },\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits/2705da2b616b98fa6010a25813c5a7a27456f71d\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/commit/2705da2b616b98fa6010a25813c5a7a27456f71d\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits/2705da2b616b98fa6010a25813c5a7a27456f71d/comments\",\n+ \"author\": {\n+ \"login\": \"kszucs\",\n+ \"id\": 961747,\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"gravatar_id\": \"\",\n+ \"url\": \"https://api.github.com/users/kszucs\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"type\": \"User\",\n+ \"site_admin\": false\n+ },\n+ \"committer\": {\n+ \"login\": \"kszucs\",\n+ \"id\": 961747,\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"gravatar_id\": \"\",\n+ \"url\": \"https://api.github.com/users/kszucs\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"type\": \"User\",\n+ \"site_admin\": false\n+ },\n+ \"parents\": [\n+ {\n+ \"sha\": \"446ae69b9385e8d0f40aa9595f723d34383af2f7\",\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits/446ae69b9385e8d0f40aa9595f723d34383af2f7\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/commit/446ae69b9385e8d0f40aa9595f723d34383af2f7\"\n+ }\n+ ],\n+ \"stats\": {\n+ \"total\": 1062,\n+ \"additions\": 1058,\n+ \"deletions\": 4\n+ },\n+ \"files\": [\n+ {\n+ \"sha\": \"dfae6eeaef384ae6180c6302a58b49e39982dc33\",\n+ \"filename\": \"ursabot/tests/fixtures/issue-comment-build-command.json\",\n+ \"status\": \"added\",\n+ \"additions\": 212,\n+ \"deletions\": 0,\n+ \"changes\": 212,\n+ \"blob_url\": \"https://github.com/ursa-labs/ursabot/blob/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-build-command.json\",\n+ \"raw_url\": \"https://github.com/ursa-labs/ursabot/raw/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-build-command.json\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-build-command.json?ref=2705da2b616b98fa6010a25813c5a7a27456f71d\",\n+ \"patch\": \"@@ -0,0 +1,212 @@\\n+{\\n+ \\\"action\\\": \\\"created\\\",\\n+ \\\"comment\\\": {\\n+ \\\"author_association\\\": \\\"NONE\\\",\\n+ \\\"body\\\": \\\"I've successfully started builds for this PR\\\",\\n+ \\\"created_at\\\": \\\"2019-04-05T11:55:44Z\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480248730\\\",\\n+ \\\"id\\\": 480248730,\\n+ \\\"issue_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26\\\",\\n+ \\\"node_id\\\": \\\"MDEyOklzc3VlQ29tbWVudDQ4MDI0ODczMA==\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-05T11:55:44Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480248730\\\",\\n+ \\\"user\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/49275095?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/ursabot/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/ursabot/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/ursabot/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/ursabot/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursabot\\\",\\n+ \\\"id\\\": 49275095,\\n+ \\\"login\\\": \\\"ursabot\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjQ5Mjc1MDk1\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/ursabot/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/ursabot/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/ursabot/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/ursabot/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/ursabot/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/ursabot\\\"\\n+ }\\n+ },\\n+ \\\"issue\\\": {\\n+ \\\"assignee\\\": null,\\n+ \\\"assignees\\\": [],\\n+ \\\"author_association\\\": \\\"MEMBER\\\",\\n+ \\\"body\\\": \\\"\\\",\\n+ \\\"closed_at\\\": null,\\n+ \\\"comments\\\": 4,\\n+ \\\"comments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\\\",\\n+ \\\"created_at\\\": \\\"2019-04-05T11:22:15Z\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26/events\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26\\\",\\n+ \\\"id\\\": 429706959,\\n+ \\\"labels\\\": [],\\n+ \\\"labels_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}\\\",\\n+ \\\"locked\\\": false,\\n+ \\\"milestone\\\": null,\\n+ \\\"node_id\\\": \\\"MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy\\\",\\n+ \\\"number\\\": 26,\\n+ \\\"pull_request\\\": {\\n+ \\\"diff_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26.diff\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26\\\",\\n+ \\\"patch_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26.patch\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\\\"\\n+ },\\n+ \\\"repository_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot\\\",\\n+ \\\"state\\\": \\\"open\\\",\\n+ \\\"title\\\": \\\"Unittests for GithubHook\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-05T11:55:44Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26\\\",\\n+ \\\"user\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars1.githubusercontent.com/u/961747?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/kszucs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/kszucs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/kszucs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/kszucs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/kszucs\\\",\\n+ \\\"id\\\": 961747,\\n+ \\\"login\\\": \\\"kszucs\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjk2MTc0Nw==\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/kszucs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/kszucs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/kszucs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/kszucs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/kszucs/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/kszucs\\\"\\n+ }\\n+ },\\n+ \\\"organization\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/46514972?v=4\\\",\\n+ \\\"description\\\": \\\"Innovation lab for open source data science tools, powered by Apache Arrow\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/orgs/ursa-labs/events\\\",\\n+ \\\"hooks_url\\\": \\\"https://api.github.com/orgs/ursa-labs/hooks\\\",\\n+ \\\"id\\\": 46514972,\\n+ \\\"issues_url\\\": \\\"https://api.github.com/orgs/ursa-labs/issues\\\",\\n+ \\\"login\\\": \\\"ursa-labs\\\",\\n+ \\\"members_url\\\": \\\"https://api.github.com/orgs/ursa-labs/members{/member}\\\",\\n+ \\\"node_id\\\": \\\"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\\\",\\n+ \\\"public_members_url\\\": \\\"https://api.github.com/orgs/ursa-labs/public_members{/member}\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/orgs/ursa-labs/repos\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/orgs/ursa-labs\\\"\\n+ },\\n+ \\\"repository\\\": {\\n+ \\\"archive_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\\\",\\n+ \\\"archived\\\": false,\\n+ \\\"assignees_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\\\",\\n+ \\\"blobs_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\\\",\\n+ \\\"branches_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\\\",\\n+ \\\"clone_url\\\": \\\"https://github.com/ursa-labs/ursabot.git\\\",\\n+ \\\"collaborators_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\\\",\\n+ \\\"comments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\\\",\\n+ \\\"commits_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\\\",\\n+ \\\"compare_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\\\",\\n+ \\\"contents_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\\\",\\n+ \\\"contributors_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/contributors\\\",\\n+ \\\"created_at\\\": \\\"2019-02-04T15:40:31Z\\\",\\n+ \\\"default_branch\\\": \\\"master\\\",\\n+ \\\"deployments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/deployments\\\",\\n+ \\\"description\\\": null,\\n+ \\\"disabled\\\": false,\\n+ \\\"downloads_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/downloads\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/events\\\",\\n+ \\\"fork\\\": false,\\n+ \\\"forks\\\": 0,\\n+ \\\"forks_count\\\": 0,\\n+ \\\"forks_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/forks\\\",\\n+ \\\"full_name\\\": \\\"ursa-labs/ursabot\\\",\\n+ \\\"git_commits_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\\\",\\n+ \\\"git_refs_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\\\",\\n+ \\\"git_tags_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\\\",\\n+ \\\"git_url\\\": \\\"git://github.com/ursa-labs/ursabot.git\\\",\\n+ \\\"has_downloads\\\": true,\\n+ \\\"has_issues\\\": true,\\n+ \\\"has_pages\\\": false,\\n+ \\\"has_projects\\\": true,\\n+ \\\"has_wiki\\\": true,\\n+ \\\"homepage\\\": null,\\n+ \\\"hooks_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/hooks\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot\\\",\\n+ \\\"id\\\": 169101701,\\n+ \\\"issue_comment_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\\\",\\n+ \\\"issue_events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\\\",\\n+ \\\"issues_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\\\",\\n+ \\\"keys_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\\\",\\n+ \\\"labels_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\\\",\\n+ \\\"language\\\": \\\"Jupyter Notebook\\\",\\n+ \\\"languages_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/languages\\\",\\n+ \\\"license\\\": null,\\n+ \\\"merges_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/merges\\\",\\n+ \\\"milestones_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\\\",\\n+ \\\"mirror_url\\\": null,\\n+ \\\"name\\\": \\\"ursabot\\\",\\n+ \\\"node_id\\\": \\\"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\\\",\\n+ \\\"notifications_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\\\",\\n+ \\\"open_issues\\\": 19,\\n+ \\\"open_issues_count\\\": 19,\\n+ \\\"owner\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/46514972?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/ursa-labs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/ursa-labs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/ursa-labs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/ursa-labs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs\\\",\\n+ \\\"id\\\": 46514972,\\n+ \\\"login\\\": \\\"ursa-labs\\\",\\n+ \\\"node_id\\\": \\\"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/ursa-labs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/ursa-labs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/ursa-labs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/ursa-labs/subscriptions\\\",\\n+ \\\"type\\\": \\\"Organization\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/ursa-labs\\\"\\n+ },\\n+ \\\"private\\\": false,\\n+ \\\"pulls_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\\\",\\n+ \\\"pushed_at\\\": \\\"2019-04-05T11:22:16Z\\\",\\n+ \\\"releases_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\\\",\\n+ \\\"size\\\": 892,\\n+ \\\"ssh_url\\\": \\\"[email protected]:ursa-labs/ursabot.git\\\",\\n+ \\\"stargazers_count\\\": 1,\\n+ \\\"stargazers_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/stargazers\\\",\\n+ \\\"statuses_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\\\",\\n+ \\\"subscribers_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/subscribers\\\",\\n+ \\\"subscription_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/subscription\\\",\\n+ \\\"svn_url\\\": \\\"https://github.com/ursa-labs/ursabot\\\",\\n+ \\\"tags_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/tags\\\",\\n+ \\\"teams_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/teams\\\",\\n+ \\\"trees_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-04T17:49:10Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot\\\",\\n+ \\\"watchers\\\": 1,\\n+ \\\"watchers_count\\\": 1\\n+ },\\n+ \\\"sender\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/49275095?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/ursabot/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/ursabot/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/ursabot/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/ursabot/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursabot\\\",\\n+ \\\"id\\\": 49275095,\\n+ \\\"login\\\": \\\"ursabot\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjQ5Mjc1MDk1\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/ursabot/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/ursabot/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/ursabot/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/ursabot/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/ursabot/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/ursabot\\\"\\n+ }\\n+}\"\n+ },\n+ {\n+ \"sha\": \"7ef554e333327f0e62aa1fd76b4b17844a39adeb\",\n+ \"filename\": \"ursabot/tests/fixtures/issue-comment-by-ursabot.json\",\n+ \"status\": \"added\",\n+ \"additions\": 212,\n+ \"deletions\": 0,\n+ \"changes\": 212,\n+ \"blob_url\": \"https://github.com/ursa-labs/ursabot/blob/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-by-ursabot.json\",\n+ \"raw_url\": \"https://github.com/ursa-labs/ursabot/raw/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-by-ursabot.json\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-by-ursabot.json?ref=2705da2b616b98fa6010a25813c5a7a27456f71d\",\n+ \"patch\": \"@@ -0,0 +1,212 @@\\n+{\\n+ \\\"action\\\": \\\"created\\\",\\n+ \\\"comment\\\": {\\n+ \\\"author_association\\\": \\\"NONE\\\",\\n+ \\\"body\\\": \\\"Unknown command \\\\\\\"\\\\\\\"\\\",\\n+ \\\"created_at\\\": \\\"2019-04-05T11:35:47Z\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480243815\\\",\\n+ \\\"id\\\": 480243815,\\n+ \\\"issue_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26\\\",\\n+ \\\"node_id\\\": \\\"MDEyOklzc3VlQ29tbWVudDQ4MDI0MzgxNQ==\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-05T11:35:47Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480243815\\\",\\n+ \\\"user\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/49275095?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/ursabot/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/ursabot/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/ursabot/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/ursabot/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursabot\\\",\\n+ \\\"id\\\": 49275095,\\n+ \\\"login\\\": \\\"ursabot\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjQ5Mjc1MDk1\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/ursabot/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/ursabot/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/ursabot/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/ursabot/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/ursabot/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/ursabot\\\"\\n+ }\\n+ },\\n+ \\\"issue\\\": {\\n+ \\\"assignee\\\": null,\\n+ \\\"assignees\\\": [],\\n+ \\\"author_association\\\": \\\"MEMBER\\\",\\n+ \\\"body\\\": \\\"\\\",\\n+ \\\"closed_at\\\": null,\\n+ \\\"comments\\\": 2,\\n+ \\\"comments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\\\",\\n+ \\\"created_at\\\": \\\"2019-04-05T11:22:15Z\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26/events\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26\\\",\\n+ \\\"id\\\": 429706959,\\n+ \\\"labels\\\": [],\\n+ \\\"labels_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}\\\",\\n+ \\\"locked\\\": false,\\n+ \\\"milestone\\\": null,\\n+ \\\"node_id\\\": \\\"MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy\\\",\\n+ \\\"number\\\": 26,\\n+ \\\"pull_request\\\": {\\n+ \\\"diff_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26.diff\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26\\\",\\n+ \\\"patch_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26.patch\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\\\"\\n+ },\\n+ \\\"repository_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot\\\",\\n+ \\\"state\\\": \\\"open\\\",\\n+ \\\"title\\\": \\\"Unittests for GithubHook\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-05T11:35:47Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26\\\",\\n+ \\\"user\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars1.githubusercontent.com/u/961747?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/kszucs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/kszucs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/kszucs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/kszucs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/kszucs\\\",\\n+ \\\"id\\\": 961747,\\n+ \\\"login\\\": \\\"kszucs\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjk2MTc0Nw==\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/kszucs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/kszucs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/kszucs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/kszucs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/kszucs/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/kszucs\\\"\\n+ }\\n+ },\\n+ \\\"organization\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/46514972?v=4\\\",\\n+ \\\"description\\\": \\\"Innovation lab for open source data science tools, powered by Apache Arrow\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/orgs/ursa-labs/events\\\",\\n+ \\\"hooks_url\\\": \\\"https://api.github.com/orgs/ursa-labs/hooks\\\",\\n+ \\\"id\\\": 46514972,\\n+ \\\"issues_url\\\": \\\"https://api.github.com/orgs/ursa-labs/issues\\\",\\n+ \\\"login\\\": \\\"ursa-labs\\\",\\n+ \\\"members_url\\\": \\\"https://api.github.com/orgs/ursa-labs/members{/member}\\\",\\n+ \\\"node_id\\\": \\\"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\\\",\\n+ \\\"public_members_url\\\": \\\"https://api.github.com/orgs/ursa-labs/public_members{/member}\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/orgs/ursa-labs/repos\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/orgs/ursa-labs\\\"\\n+ },\\n+ \\\"repository\\\": {\\n+ \\\"archive_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\\\",\\n+ \\\"archived\\\": false,\\n+ \\\"assignees_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\\\",\\n+ \\\"blobs_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\\\",\\n+ \\\"branches_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\\\",\\n+ \\\"clone_url\\\": \\\"https://github.com/ursa-labs/ursabot.git\\\",\\n+ \\\"collaborators_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\\\",\\n+ \\\"comments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\\\",\\n+ \\\"commits_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\\\",\\n+ \\\"compare_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\\\",\\n+ \\\"contents_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\\\",\\n+ \\\"contributors_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/contributors\\\",\\n+ \\\"created_at\\\": \\\"2019-02-04T15:40:31Z\\\",\\n+ \\\"default_branch\\\": \\\"master\\\",\\n+ \\\"deployments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/deployments\\\",\\n+ \\\"description\\\": null,\\n+ \\\"disabled\\\": false,\\n+ \\\"downloads_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/downloads\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/events\\\",\\n+ \\\"fork\\\": false,\\n+ \\\"forks\\\": 0,\\n+ \\\"forks_count\\\": 0,\\n+ \\\"forks_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/forks\\\",\\n+ \\\"full_name\\\": \\\"ursa-labs/ursabot\\\",\\n+ \\\"git_commits_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\\\",\\n+ \\\"git_refs_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\\\",\\n+ \\\"git_tags_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\\\",\\n+ \\\"git_url\\\": \\\"git://github.com/ursa-labs/ursabot.git\\\",\\n+ \\\"has_downloads\\\": true,\\n+ \\\"has_issues\\\": true,\\n+ \\\"has_pages\\\": false,\\n+ \\\"has_projects\\\": true,\\n+ \\\"has_wiki\\\": true,\\n+ \\\"homepage\\\": null,\\n+ \\\"hooks_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/hooks\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot\\\",\\n+ \\\"id\\\": 169101701,\\n+ \\\"issue_comment_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\\\",\\n+ \\\"issue_events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\\\",\\n+ \\\"issues_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\\\",\\n+ \\\"keys_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\\\",\\n+ \\\"labels_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\\\",\\n+ \\\"language\\\": \\\"Jupyter Notebook\\\",\\n+ \\\"languages_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/languages\\\",\\n+ \\\"license\\\": null,\\n+ \\\"merges_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/merges\\\",\\n+ \\\"milestones_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\\\",\\n+ \\\"mirror_url\\\": null,\\n+ \\\"name\\\": \\\"ursabot\\\",\\n+ \\\"node_id\\\": \\\"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\\\",\\n+ \\\"notifications_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\\\",\\n+ \\\"open_issues\\\": 19,\\n+ \\\"open_issues_count\\\": 19,\\n+ \\\"owner\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/46514972?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/ursa-labs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/ursa-labs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/ursa-labs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/ursa-labs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs\\\",\\n+ \\\"id\\\": 46514972,\\n+ \\\"login\\\": \\\"ursa-labs\\\",\\n+ \\\"node_id\\\": \\\"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/ursa-labs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/ursa-labs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/ursa-labs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/ursa-labs/subscriptions\\\",\\n+ \\\"type\\\": \\\"Organization\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/ursa-labs\\\"\\n+ },\\n+ \\\"private\\\": false,\\n+ \\\"pulls_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\\\",\\n+ \\\"pushed_at\\\": \\\"2019-04-05T11:22:16Z\\\",\\n+ \\\"releases_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\\\",\\n+ \\\"size\\\": 892,\\n+ \\\"ssh_url\\\": \\\"[email protected]:ursa-labs/ursabot.git\\\",\\n+ \\\"stargazers_count\\\": 1,\\n+ \\\"stargazers_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/stargazers\\\",\\n+ \\\"statuses_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\\\",\\n+ \\\"subscribers_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/subscribers\\\",\\n+ \\\"subscription_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/subscription\\\",\\n+ \\\"svn_url\\\": \\\"https://github.com/ursa-labs/ursabot\\\",\\n+ \\\"tags_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/tags\\\",\\n+ \\\"teams_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/teams\\\",\\n+ \\\"trees_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-04T17:49:10Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot\\\",\\n+ \\\"watchers\\\": 1,\\n+ \\\"watchers_count\\\": 1\\n+ },\\n+ \\\"sender\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/49275095?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/ursabot/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/ursabot/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/ursabot/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/ursabot/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursabot\\\",\\n+ \\\"id\\\": 49275095,\\n+ \\\"login\\\": \\\"ursabot\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjQ5Mjc1MDk1\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/ursabot/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/ursabot/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/ursabot/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/ursabot/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/ursabot/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/ursabot\\\"\\n+ }\\n+}\"\n+ },\n+ {\n+ \"sha\": \"a8082dbc91fdfe815b795e49ec10e49000771ef5\",\n+ \"filename\": \"ursabot/tests/fixtures/issue-comment-not-mentioning-ursabot.json\",\n+ \"status\": \"added\",\n+ \"additions\": 212,\n+ \"deletions\": 0,\n+ \"changes\": 212,\n+ \"blob_url\": \"https://github.com/ursa-labs/ursabot/blob/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-not-mentioning-ursabot.json\",\n+ \"raw_url\": \"https://github.com/ursa-labs/ursabot/raw/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-not-mentioning-ursabot.json\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-not-mentioning-ursabot.json?ref=2705da2b616b98fa6010a25813c5a7a27456f71d\",\n+ \"patch\": \"@@ -0,0 +1,212 @@\\n+{\\n+ \\\"action\\\": \\\"created\\\",\\n+ \\\"comment\\\": {\\n+ \\\"author_association\\\": \\\"MEMBER\\\",\\n+ \\\"body\\\": \\\"bear is no game\\\",\\n+ \\\"created_at\\\": \\\"2019-04-05T11:26:56Z\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480241727\\\",\\n+ \\\"id\\\": 480241727,\\n+ \\\"issue_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26\\\",\\n+ \\\"node_id\\\": \\\"MDEyOklzc3VlQ29tbWVudDQ4MDI0MTcyNw==\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-05T11:26:56Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480241727\\\",\\n+ \\\"user\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars1.githubusercontent.com/u/961747?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/kszucs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/kszucs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/kszucs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/kszucs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/kszucs\\\",\\n+ \\\"id\\\": 961747,\\n+ \\\"login\\\": \\\"kszucs\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjk2MTc0Nw==\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/kszucs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/kszucs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/kszucs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/kszucs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/kszucs/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/kszucs\\\"\\n+ }\\n+ },\\n+ \\\"issue\\\": {\\n+ \\\"assignee\\\": null,\\n+ \\\"assignees\\\": [],\\n+ \\\"author_association\\\": \\\"MEMBER\\\",\\n+ \\\"body\\\": \\\"\\\",\\n+ \\\"closed_at\\\": null,\\n+ \\\"comments\\\": 0,\\n+ \\\"comments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\\\",\\n+ \\\"created_at\\\": \\\"2019-04-05T11:22:15Z\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26/events\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26\\\",\\n+ \\\"id\\\": 429706959,\\n+ \\\"labels\\\": [],\\n+ \\\"labels_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}\\\",\\n+ \\\"locked\\\": false,\\n+ \\\"milestone\\\": null,\\n+ \\\"node_id\\\": \\\"MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy\\\",\\n+ \\\"number\\\": 26,\\n+ \\\"pull_request\\\": {\\n+ \\\"diff_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26.diff\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26\\\",\\n+ \\\"patch_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26.patch\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\\\"\\n+ },\\n+ \\\"repository_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot\\\",\\n+ \\\"state\\\": \\\"open\\\",\\n+ \\\"title\\\": \\\"Unittests for GithubHook\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-05T11:26:56Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26\\\",\\n+ \\\"user\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars1.githubusercontent.com/u/961747?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/kszucs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/kszucs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/kszucs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/kszucs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/kszucs\\\",\\n+ \\\"id\\\": 961747,\\n+ \\\"login\\\": \\\"kszucs\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjk2MTc0Nw==\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/kszucs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/kszucs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/kszucs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/kszucs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/kszucs/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/kszucs\\\"\\n+ }\\n+ },\\n+ \\\"organization\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/46514972?v=4\\\",\\n+ \\\"description\\\": \\\"Innovation lab for open source data science tools, powered by Apache Arrow\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/orgs/ursa-labs/events\\\",\\n+ \\\"hooks_url\\\": \\\"https://api.github.com/orgs/ursa-labs/hooks\\\",\\n+ \\\"id\\\": 46514972,\\n+ \\\"issues_url\\\": \\\"https://api.github.com/orgs/ursa-labs/issues\\\",\\n+ \\\"login\\\": \\\"ursa-labs\\\",\\n+ \\\"members_url\\\": \\\"https://api.github.com/orgs/ursa-labs/members{/member}\\\",\\n+ \\\"node_id\\\": \\\"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\\\",\\n+ \\\"public_members_url\\\": \\\"https://api.github.com/orgs/ursa-labs/public_members{/member}\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/orgs/ursa-labs/repos\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/orgs/ursa-labs\\\"\\n+ },\\n+ \\\"repository\\\": {\\n+ \\\"archive_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\\\",\\n+ \\\"archived\\\": false,\\n+ \\\"assignees_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\\\",\\n+ \\\"blobs_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\\\",\\n+ \\\"branches_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\\\",\\n+ \\\"clone_url\\\": \\\"https://github.com/ursa-labs/ursabot.git\\\",\\n+ \\\"collaborators_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\\\",\\n+ \\\"comments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\\\",\\n+ \\\"commits_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\\\",\\n+ \\\"compare_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\\\",\\n+ \\\"contents_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\\\",\\n+ \\\"contributors_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/contributors\\\",\\n+ \\\"created_at\\\": \\\"2019-02-04T15:40:31Z\\\",\\n+ \\\"default_branch\\\": \\\"master\\\",\\n+ \\\"deployments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/deployments\\\",\\n+ \\\"description\\\": null,\\n+ \\\"disabled\\\": false,\\n+ \\\"downloads_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/downloads\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/events\\\",\\n+ \\\"fork\\\": false,\\n+ \\\"forks\\\": 0,\\n+ \\\"forks_count\\\": 0,\\n+ \\\"forks_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/forks\\\",\\n+ \\\"full_name\\\": \\\"ursa-labs/ursabot\\\",\\n+ \\\"git_commits_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\\\",\\n+ \\\"git_refs_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\\\",\\n+ \\\"git_tags_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\\\",\\n+ \\\"git_url\\\": \\\"git://github.com/ursa-labs/ursabot.git\\\",\\n+ \\\"has_downloads\\\": true,\\n+ \\\"has_issues\\\": true,\\n+ \\\"has_pages\\\": false,\\n+ \\\"has_projects\\\": true,\\n+ \\\"has_wiki\\\": true,\\n+ \\\"homepage\\\": null,\\n+ \\\"hooks_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/hooks\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot\\\",\\n+ \\\"id\\\": 169101701,\\n+ \\\"issue_comment_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\\\",\\n+ \\\"issue_events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\\\",\\n+ \\\"issues_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\\\",\\n+ \\\"keys_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\\\",\\n+ \\\"labels_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\\\",\\n+ \\\"language\\\": \\\"Jupyter Notebook\\\",\\n+ \\\"languages_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/languages\\\",\\n+ \\\"license\\\": null,\\n+ \\\"merges_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/merges\\\",\\n+ \\\"milestones_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\\\",\\n+ \\\"mirror_url\\\": null,\\n+ \\\"name\\\": \\\"ursabot\\\",\\n+ \\\"node_id\\\": \\\"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\\\",\\n+ \\\"notifications_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\\\",\\n+ \\\"open_issues\\\": 19,\\n+ \\\"open_issues_count\\\": 19,\\n+ \\\"owner\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/46514972?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/ursa-labs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/ursa-labs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/ursa-labs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/ursa-labs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs\\\",\\n+ \\\"id\\\": 46514972,\\n+ \\\"login\\\": \\\"ursa-labs\\\",\\n+ \\\"node_id\\\": \\\"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/ursa-labs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/ursa-labs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/ursa-labs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/ursa-labs/subscriptions\\\",\\n+ \\\"type\\\": \\\"Organization\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/ursa-labs\\\"\\n+ },\\n+ \\\"private\\\": false,\\n+ \\\"pulls_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\\\",\\n+ \\\"pushed_at\\\": \\\"2019-04-05T11:22:16Z\\\",\\n+ \\\"releases_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\\\",\\n+ \\\"size\\\": 892,\\n+ \\\"ssh_url\\\": \\\"[email protected]:ursa-labs/ursabot.git\\\",\\n+ \\\"stargazers_count\\\": 1,\\n+ \\\"stargazers_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/stargazers\\\",\\n+ \\\"statuses_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\\\",\\n+ \\\"subscribers_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/subscribers\\\",\\n+ \\\"subscription_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/subscription\\\",\\n+ \\\"svn_url\\\": \\\"https://github.com/ursa-labs/ursabot\\\",\\n+ \\\"tags_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/tags\\\",\\n+ \\\"teams_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/teams\\\",\\n+ \\\"trees_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-04T17:49:10Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot\\\",\\n+ \\\"watchers\\\": 1,\\n+ \\\"watchers_count\\\": 1\\n+ },\\n+ \\\"sender\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars1.githubusercontent.com/u/961747?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/kszucs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/kszucs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/kszucs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/kszucs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/kszucs\\\",\\n+ \\\"id\\\": 961747,\\n+ \\\"login\\\": \\\"kszucs\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjk2MTc0Nw==\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/kszucs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/kszucs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/kszucs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/kszucs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/kszucs/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/kszucs\\\"\\n+ }\\n+}\"\n+ },\n+ {\n+ \"sha\": \"2770e29ba9086394455315e590c0b433d08e437e\",\n+ \"filename\": \"ursabot/tests/fixtures/issue-comment-with-empty-command.json\",\n+ \"status\": \"added\",\n+ \"additions\": 212,\n+ \"deletions\": 0,\n+ \"changes\": 212,\n+ \"blob_url\": \"https://github.com/ursa-labs/ursabot/blob/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-with-empty-command.json\",\n+ \"raw_url\": \"https://github.com/ursa-labs/ursabot/raw/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-with-empty-command.json\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-with-empty-command.json?ref=2705da2b616b98fa6010a25813c5a7a27456f71d\",\n+ \"patch\": \"@@ -0,0 +1,212 @@\\n+{\\n+ \\\"action\\\": \\\"created\\\",\\n+ \\\"comment\\\": {\\n+ \\\"author_association\\\": \\\"MEMBER\\\",\\n+ \\\"body\\\": \\\"@ursabot \\\",\\n+ \\\"created_at\\\": \\\"2019-04-05T11:35:46Z\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26#issuecomment-480243811\\\",\\n+ \\\"id\\\": 480243811,\\n+ \\\"issue_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26\\\",\\n+ \\\"node_id\\\": \\\"MDEyOklzc3VlQ29tbWVudDQ4MDI0MzgxMQ==\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-05T11:35:46Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480243811\\\",\\n+ \\\"user\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars1.githubusercontent.com/u/961747?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/kszucs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/kszucs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/kszucs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/kszucs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/kszucs\\\",\\n+ \\\"id\\\": 961747,\\n+ \\\"login\\\": \\\"kszucs\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjk2MTc0Nw==\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/kszucs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/kszucs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/kszucs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/kszucs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/kszucs/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/kszucs\\\"\\n+ }\\n+ },\\n+ \\\"issue\\\": {\\n+ \\\"assignee\\\": null,\\n+ \\\"assignees\\\": [],\\n+ \\\"author_association\\\": \\\"MEMBER\\\",\\n+ \\\"body\\\": \\\"\\\",\\n+ \\\"closed_at\\\": null,\\n+ \\\"comments\\\": 1,\\n+ \\\"comments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\\\",\\n+ \\\"created_at\\\": \\\"2019-04-05T11:22:15Z\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26/events\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26\\\",\\n+ \\\"id\\\": 429706959,\\n+ \\\"labels\\\": [],\\n+ \\\"labels_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26/labels{/name}\\\",\\n+ \\\"locked\\\": false,\\n+ \\\"milestone\\\": null,\\n+ \\\"node_id\\\": \\\"MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy\\\",\\n+ \\\"number\\\": 26,\\n+ \\\"pull_request\\\": {\\n+ \\\"diff_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26.diff\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26\\\",\\n+ \\\"patch_url\\\": \\\"https://github.com/ursa-labs/ursabot/pull/26.patch\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\\\"\\n+ },\\n+ \\\"repository_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot\\\",\\n+ \\\"state\\\": \\\"open\\\",\\n+ \\\"title\\\": \\\"Unittests for GithubHook\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-05T11:35:46Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/26\\\",\\n+ \\\"user\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars1.githubusercontent.com/u/961747?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/kszucs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/kszucs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/kszucs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/kszucs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/kszucs\\\",\\n+ \\\"id\\\": 961747,\\n+ \\\"login\\\": \\\"kszucs\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjk2MTc0Nw==\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/kszucs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/kszucs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/kszucs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/kszucs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/kszucs/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/kszucs\\\"\\n+ }\\n+ },\\n+ \\\"organization\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/46514972?v=4\\\",\\n+ \\\"description\\\": \\\"Innovation lab for open source data science tools, powered by Apache Arrow\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/orgs/ursa-labs/events\\\",\\n+ \\\"hooks_url\\\": \\\"https://api.github.com/orgs/ursa-labs/hooks\\\",\\n+ \\\"id\\\": 46514972,\\n+ \\\"issues_url\\\": \\\"https://api.github.com/orgs/ursa-labs/issues\\\",\\n+ \\\"login\\\": \\\"ursa-labs\\\",\\n+ \\\"members_url\\\": \\\"https://api.github.com/orgs/ursa-labs/members{/member}\\\",\\n+ \\\"node_id\\\": \\\"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\\\",\\n+ \\\"public_members_url\\\": \\\"https://api.github.com/orgs/ursa-labs/public_members{/member}\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/orgs/ursa-labs/repos\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/orgs/ursa-labs\\\"\\n+ },\\n+ \\\"repository\\\": {\\n+ \\\"archive_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\\\",\\n+ \\\"archived\\\": false,\\n+ \\\"assignees_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\\\",\\n+ \\\"blobs_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\\\",\\n+ \\\"branches_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\\\",\\n+ \\\"clone_url\\\": \\\"https://github.com/ursa-labs/ursabot.git\\\",\\n+ \\\"collaborators_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\\\",\\n+ \\\"comments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\\\",\\n+ \\\"commits_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\\\",\\n+ \\\"compare_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\\\",\\n+ \\\"contents_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\\\",\\n+ \\\"contributors_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/contributors\\\",\\n+ \\\"created_at\\\": \\\"2019-02-04T15:40:31Z\\\",\\n+ \\\"default_branch\\\": \\\"master\\\",\\n+ \\\"deployments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/deployments\\\",\\n+ \\\"description\\\": null,\\n+ \\\"disabled\\\": false,\\n+ \\\"downloads_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/downloads\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/events\\\",\\n+ \\\"fork\\\": false,\\n+ \\\"forks\\\": 0,\\n+ \\\"forks_count\\\": 0,\\n+ \\\"forks_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/forks\\\",\\n+ \\\"full_name\\\": \\\"ursa-labs/ursabot\\\",\\n+ \\\"git_commits_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\\\",\\n+ \\\"git_refs_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\\\",\\n+ \\\"git_tags_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\\\",\\n+ \\\"git_url\\\": \\\"git://github.com/ursa-labs/ursabot.git\\\",\\n+ \\\"has_downloads\\\": true,\\n+ \\\"has_issues\\\": true,\\n+ \\\"has_pages\\\": false,\\n+ \\\"has_projects\\\": true,\\n+ \\\"has_wiki\\\": true,\\n+ \\\"homepage\\\": null,\\n+ \\\"hooks_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/hooks\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot\\\",\\n+ \\\"id\\\": 169101701,\\n+ \\\"issue_comment_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\\\",\\n+ \\\"issue_events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\\\",\\n+ \\\"issues_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\\\",\\n+ \\\"keys_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\\\",\\n+ \\\"labels_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\\\",\\n+ \\\"language\\\": \\\"Jupyter Notebook\\\",\\n+ \\\"languages_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/languages\\\",\\n+ \\\"license\\\": null,\\n+ \\\"merges_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/merges\\\",\\n+ \\\"milestones_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\\\",\\n+ \\\"mirror_url\\\": null,\\n+ \\\"name\\\": \\\"ursabot\\\",\\n+ \\\"node_id\\\": \\\"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\\\",\\n+ \\\"notifications_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\\\",\\n+ \\\"open_issues\\\": 19,\\n+ \\\"open_issues_count\\\": 19,\\n+ \\\"owner\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/46514972?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/ursa-labs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/ursa-labs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/ursa-labs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/ursa-labs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs\\\",\\n+ \\\"id\\\": 46514972,\\n+ \\\"login\\\": \\\"ursa-labs\\\",\\n+ \\\"node_id\\\": \\\"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/ursa-labs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/ursa-labs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/ursa-labs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/ursa-labs/subscriptions\\\",\\n+ \\\"type\\\": \\\"Organization\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/ursa-labs\\\"\\n+ },\\n+ \\\"private\\\": false,\\n+ \\\"pulls_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\\\",\\n+ \\\"pushed_at\\\": \\\"2019-04-05T11:22:16Z\\\",\\n+ \\\"releases_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\\\",\\n+ \\\"size\\\": 892,\\n+ \\\"ssh_url\\\": \\\"[email protected]:ursa-labs/ursabot.git\\\",\\n+ \\\"stargazers_count\\\": 1,\\n+ \\\"stargazers_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/stargazers\\\",\\n+ \\\"statuses_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\\\",\\n+ \\\"subscribers_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/subscribers\\\",\\n+ \\\"subscription_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/subscription\\\",\\n+ \\\"svn_url\\\": \\\"https://github.com/ursa-labs/ursabot\\\",\\n+ \\\"tags_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/tags\\\",\\n+ \\\"teams_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/teams\\\",\\n+ \\\"trees_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-04T17:49:10Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot\\\",\\n+ \\\"watchers\\\": 1,\\n+ \\\"watchers_count\\\": 1\\n+ },\\n+ \\\"sender\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars1.githubusercontent.com/u/961747?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/kszucs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/kszucs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/kszucs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/kszucs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/kszucs\\\",\\n+ \\\"id\\\": 961747,\\n+ \\\"login\\\": \\\"kszucs\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjk2MTc0Nw==\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/kszucs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/kszucs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/kszucs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/kszucs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/kszucs/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/kszucs\\\"\\n+ }\\n+}\"\n+ },\n+ {\n+ \"sha\": \"80ff46510a2f39ae60f7c3a98e5fdaef8e688784\",\n+ \"filename\": \"ursabot/tests/fixtures/issue-comment-without-pull-request.json\",\n+ \"status\": \"added\",\n+ \"additions\": 206,\n+ \"deletions\": 0,\n+ \"changes\": 206,\n+ \"blob_url\": \"https://github.com/ursa-labs/ursabot/blob/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-without-pull-request.json\",\n+ \"raw_url\": \"https://github.com/ursa-labs/ursabot/raw/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/fixtures/issue-comment-without-pull-request.json\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/issue-comment-without-pull-request.json?ref=2705da2b616b98fa6010a25813c5a7a27456f71d\",\n+ \"patch\": \"@@ -0,0 +1,206 @@\\n+{\\n+ \\\"action\\\": \\\"created\\\",\\n+ \\\"comment\\\": {\\n+ \\\"author_association\\\": \\\"NONE\\\",\\n+ \\\"body\\\": \\\"Ursabot only listens to pull request comments!\\\",\\n+ \\\"created_at\\\": \\\"2019-04-05T11:53:43Z\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/issues/19#issuecomment-480248217\\\",\\n+ \\\"id\\\": 480248217,\\n+ \\\"issue_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/19\\\",\\n+ \\\"node_id\\\": \\\"MDEyOklzc3VlQ29tbWVudDQ4MDI0ODIxNw==\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-05T11:53:43Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/comments/480248217\\\",\\n+ \\\"user\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/49275095?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/ursabot/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/ursabot/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/ursabot/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/ursabot/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursabot\\\",\\n+ \\\"id\\\": 49275095,\\n+ \\\"login\\\": \\\"ursabot\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjQ5Mjc1MDk1\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/ursabot/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/ursabot/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/ursabot/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/ursabot/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/ursabot/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/ursabot\\\"\\n+ }\\n+ },\\n+ \\\"issue\\\": {\\n+ \\\"assignee\\\": null,\\n+ \\\"assignees\\\": [],\\n+ \\\"author_association\\\": \\\"MEMBER\\\",\\n+ \\\"body\\\": \\\"\\\",\\n+ \\\"closed_at\\\": null,\\n+ \\\"comments\\\": 4,\\n+ \\\"comments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/19/comments\\\",\\n+ \\\"created_at\\\": \\\"2019-04-02T09:56:41Z\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/19/events\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot/issues/19\\\",\\n+ \\\"id\\\": 428131685,\\n+ \\\"labels\\\": [],\\n+ \\\"labels_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/19/labels{/name}\\\",\\n+ \\\"locked\\\": false,\\n+ \\\"milestone\\\": null,\\n+ \\\"node_id\\\": \\\"MDU6SXNzdWU0MjgxMzE2ODU=\\\",\\n+ \\\"number\\\": 19,\\n+ \\\"repository_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot\\\",\\n+ \\\"state\\\": \\\"open\\\",\\n+ \\\"title\\\": \\\"Build ursabot itself via ursabot\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-05T11:53:43Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/19\\\",\\n+ \\\"user\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars1.githubusercontent.com/u/961747?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/kszucs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/kszucs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/kszucs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/kszucs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/kszucs\\\",\\n+ \\\"id\\\": 961747,\\n+ \\\"login\\\": \\\"kszucs\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjk2MTc0Nw==\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/kszucs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/kszucs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/kszucs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/kszucs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/kszucs/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/kszucs\\\"\\n+ }\\n+ },\\n+ \\\"organization\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/46514972?v=4\\\",\\n+ \\\"description\\\": \\\"Innovation lab for open source data science tools, powered by Apache Arrow\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/orgs/ursa-labs/events\\\",\\n+ \\\"hooks_url\\\": \\\"https://api.github.com/orgs/ursa-labs/hooks\\\",\\n+ \\\"id\\\": 46514972,\\n+ \\\"issues_url\\\": \\\"https://api.github.com/orgs/ursa-labs/issues\\\",\\n+ \\\"login\\\": \\\"ursa-labs\\\",\\n+ \\\"members_url\\\": \\\"https://api.github.com/orgs/ursa-labs/members{/member}\\\",\\n+ \\\"node_id\\\": \\\"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\\\",\\n+ \\\"public_members_url\\\": \\\"https://api.github.com/orgs/ursa-labs/public_members{/member}\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/orgs/ursa-labs/repos\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/orgs/ursa-labs\\\"\\n+ },\\n+ \\\"repository\\\": {\\n+ \\\"archive_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\\\",\\n+ \\\"archived\\\": false,\\n+ \\\"assignees_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\\\",\\n+ \\\"blobs_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\\\",\\n+ \\\"branches_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\\\",\\n+ \\\"clone_url\\\": \\\"https://github.com/ursa-labs/ursabot.git\\\",\\n+ \\\"collaborators_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\\\",\\n+ \\\"comments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\\\",\\n+ \\\"commits_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\\\",\\n+ \\\"compare_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\\\",\\n+ \\\"contents_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\\\",\\n+ \\\"contributors_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/contributors\\\",\\n+ \\\"created_at\\\": \\\"2019-02-04T15:40:31Z\\\",\\n+ \\\"default_branch\\\": \\\"master\\\",\\n+ \\\"deployments_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/deployments\\\",\\n+ \\\"description\\\": null,\\n+ \\\"disabled\\\": false,\\n+ \\\"downloads_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/downloads\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/events\\\",\\n+ \\\"fork\\\": false,\\n+ \\\"forks\\\": 0,\\n+ \\\"forks_count\\\": 0,\\n+ \\\"forks_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/forks\\\",\\n+ \\\"full_name\\\": \\\"ursa-labs/ursabot\\\",\\n+ \\\"git_commits_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\\\",\\n+ \\\"git_refs_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\\\",\\n+ \\\"git_tags_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\\\",\\n+ \\\"git_url\\\": \\\"git://github.com/ursa-labs/ursabot.git\\\",\\n+ \\\"has_downloads\\\": true,\\n+ \\\"has_issues\\\": true,\\n+ \\\"has_pages\\\": false,\\n+ \\\"has_projects\\\": true,\\n+ \\\"has_wiki\\\": true,\\n+ \\\"homepage\\\": null,\\n+ \\\"hooks_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/hooks\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs/ursabot\\\",\\n+ \\\"id\\\": 169101701,\\n+ \\\"issue_comment_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\\\",\\n+ \\\"issue_events_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\\\",\\n+ \\\"issues_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\\\",\\n+ \\\"keys_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\\\",\\n+ \\\"labels_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\\\",\\n+ \\\"language\\\": \\\"Jupyter Notebook\\\",\\n+ \\\"languages_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/languages\\\",\\n+ \\\"license\\\": null,\\n+ \\\"merges_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/merges\\\",\\n+ \\\"milestones_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\\\",\\n+ \\\"mirror_url\\\": null,\\n+ \\\"name\\\": \\\"ursabot\\\",\\n+ \\\"node_id\\\": \\\"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\\\",\\n+ \\\"notifications_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\\\",\\n+ \\\"open_issues\\\": 19,\\n+ \\\"open_issues_count\\\": 19,\\n+ \\\"owner\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/46514972?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/ursa-labs/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/ursa-labs/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/ursa-labs/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/ursa-labs/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursa-labs\\\",\\n+ \\\"id\\\": 46514972,\\n+ \\\"login\\\": \\\"ursa-labs\\\",\\n+ \\\"node_id\\\": \\\"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/ursa-labs/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/ursa-labs/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/ursa-labs/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/ursa-labs/subscriptions\\\",\\n+ \\\"type\\\": \\\"Organization\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/ursa-labs\\\"\\n+ },\\n+ \\\"private\\\": false,\\n+ \\\"pulls_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\\\",\\n+ \\\"pushed_at\\\": \\\"2019-04-05T11:22:16Z\\\",\\n+ \\\"releases_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\\\",\\n+ \\\"size\\\": 892,\\n+ \\\"ssh_url\\\": \\\"[email protected]:ursa-labs/ursabot.git\\\",\\n+ \\\"stargazers_count\\\": 1,\\n+ \\\"stargazers_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/stargazers\\\",\\n+ \\\"statuses_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\\\",\\n+ \\\"subscribers_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/subscribers\\\",\\n+ \\\"subscription_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/subscription\\\",\\n+ \\\"svn_url\\\": \\\"https://github.com/ursa-labs/ursabot\\\",\\n+ \\\"tags_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/tags\\\",\\n+ \\\"teams_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/teams\\\",\\n+ \\\"trees_url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\\\",\\n+ \\\"updated_at\\\": \\\"2019-04-04T17:49:10Z\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/repos/ursa-labs/ursabot\\\",\\n+ \\\"watchers\\\": 1,\\n+ \\\"watchers_count\\\": 1\\n+ },\\n+ \\\"sender\\\": {\\n+ \\\"avatar_url\\\": \\\"https://avatars2.githubusercontent.com/u/49275095?v=4\\\",\\n+ \\\"events_url\\\": \\\"https://api.github.com/users/ursabot/events{/privacy}\\\",\\n+ \\\"followers_url\\\": \\\"https://api.github.com/users/ursabot/followers\\\",\\n+ \\\"following_url\\\": \\\"https://api.github.com/users/ursabot/following{/other_user}\\\",\\n+ \\\"gists_url\\\": \\\"https://api.github.com/users/ursabot/gists{/gist_id}\\\",\\n+ \\\"gravatar_id\\\": \\\"\\\",\\n+ \\\"html_url\\\": \\\"https://github.com/ursabot\\\",\\n+ \\\"id\\\": 49275095,\\n+ \\\"login\\\": \\\"ursabot\\\",\\n+ \\\"node_id\\\": \\\"MDQ6VXNlcjQ5Mjc1MDk1\\\",\\n+ \\\"organizations_url\\\": \\\"https://api.github.com/users/ursabot/orgs\\\",\\n+ \\\"received_events_url\\\": \\\"https://api.github.com/users/ursabot/received_events\\\",\\n+ \\\"repos_url\\\": \\\"https://api.github.com/users/ursabot/repos\\\",\\n+ \\\"site_admin\\\": false,\\n+ \\\"starred_url\\\": \\\"https://api.github.com/users/ursabot/starred{/owner}{/repo}\\\",\\n+ \\\"subscriptions_url\\\": \\\"https://api.github.com/users/ursabot/subscriptions\\\",\\n+ \\\"type\\\": \\\"User\\\",\\n+ \\\"url\\\": \\\"https://api.github.com/users/ursabot\\\"\\n+ }\\n+}\"\n+ },\n+ {\n+ \"sha\": \"c738bb0eb54c87ba0f23e97e827d77c2be74d0b6\",\n+ \"filename\": \"ursabot/tests/test_hooks.py\",\n+ \"status\": \"modified\",\n+ \"additions\": 4,\n+ \"deletions\": 4,\n+ \"changes\": 8,\n+ \"blob_url\": \"https://github.com/ursa-labs/ursabot/blob/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/test_hooks.py\",\n+ \"raw_url\": \"https://github.com/ursa-labs/ursabot/raw/2705da2b616b98fa6010a25813c5a7a27456f71d/ursabot/tests/test_hooks.py\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/test_hooks.py?ref=2705da2b616b98fa6010a25813c5a7a27456f71d\",\n+ \"patch\": \"@@ -54,7 +54,7 @@ class TestGithubHook(ChangeHookTestCase):\\n await self.request('ping', {})\\n assert len(self.hook.master.data.updates.changesAdded) == 0\\n \\n- @ensure_deferred\\n- async def test_issue_comment(self):\\n- payload = {}\\n- await self.request('issue_comment', payload)\\n+ # @ensure_deferred\\n+ # async def test_issue_comment(self):\\n+ # payload = {}\\n+ # await self.request('issue_comment', payload)\"\n+ }\n+ ]\n+}"+ },+ {+ "sha": "ad061d7244b917e6ea3853698dc3bc2a8c9c6857",+ "filename": "ursabot/tests/fixtures/pull-request-26.json",+ "status": "added",+ "additions": 335,+ "deletions": 0,+ "changes": 335,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/pull-request-26.json",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/fixtures/pull-request-26.json",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/fixtures/pull-request-26.json?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -0,0 +1,335 @@\n+{\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\",\n+ \"id\": 267785552,\n+ \"node_id\": \"MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy\",\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot/pull/26\",\n+ \"diff_url\": \"https://github.com/ursa-labs/ursabot/pull/26.diff\",\n+ \"patch_url\": \"https://github.com/ursa-labs/ursabot/pull/26.patch\",\n+ \"issue_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\",\n+ \"number\": 26,\n+ \"state\": \"open\",\n+ \"locked\": false,\n+ \"title\": \"Unittests for GithubHook\",\n+ \"user\": {\n+ \"login\": \"kszucs\",\n+ \"id\": 961747,\n+ \"node_id\": \"MDQ6VXNlcjk2MTc0Nw==\",\n+ \"avatar_url\": \"https://avatars1.githubusercontent.com/u/961747?v=4\",\n+ \"gravatar_id\": \"\",\n+ \"url\": \"https://api.github.com/users/kszucs\",\n+ \"html_url\": \"https://github.com/kszucs\",\n+ \"followers_url\": \"https://api.github.com/users/kszucs/followers\",\n+ \"following_url\": \"https://api.github.com/users/kszucs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/kszucs/gists{/gist_id}\",\n+ \"starred_url\": \"https://api.github.com/users/kszucs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/kszucs/subscriptions\",\n+ \"organizations_url\": \"https://api.github.com/users/kszucs/orgs\",\n+ \"repos_url\": \"https://api.github.com/users/kszucs/repos\",\n+ \"events_url\": \"https://api.github.com/users/kszucs/events{/privacy}\",\n+ \"received_events_url\": \"https://api.github.com/users/kszucs/received_events\",\n+ \"type\": \"User\",\n+ \"site_admin\": false\n+ },\n+ \"body\": \"\",\n+ \"created_at\": \"2019-04-05T11:22:15Z\",\n+ \"updated_at\": \"2019-04-05T12:01:40Z\",\n+ \"closed_at\": null,\n+ \"merged_at\": null,\n+ \"merge_commit_sha\": \"cc5dc3606988b3824be54df779ed2028776113cb\",\n+ \"assignee\": null,\n+ \"assignees\": [\n+\n+ ],\n+ \"requested_reviewers\": [\n+\n+ ],\n+ \"requested_teams\": [\n+\n+ ],\n+ \"labels\": [\n+\n+ ],\n+ \"milestone\": null,\n+ \"commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26/commits\",\n+ \"review_comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26/comments\",\n+ \"review_comment_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/comments{/number}\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\",\n+ \"statuses_url\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/2705da2b616b98fa6010a25813c5a7a27456f71d\",\n+ \"head\": {\n+ \"label\": \"ursa-labs:test-hook\",\n+ \"ref\": \"test-hook\",\n+ \"sha\": \"2705da2b616b98fa6010a25813c5a7a27456f71d\",\n+ \"user\": {\n+ \"login\": \"ursa-labs\",\n+ \"id\": 46514972,\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"gravatar_id\": \"\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"type\": \"Organization\",\n+ \"site_admin\": false\n+ },\n+ \"repo\": {\n+ \"id\": 169101701,\n+ \"node_id\": \"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\",\n+ \"name\": \"ursabot\",\n+ \"full_name\": \"ursa-labs/ursabot\",\n+ \"private\": false,\n+ \"owner\": {\n+ \"login\": \"ursa-labs\",\n+ \"id\": 46514972,\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"gravatar_id\": \"\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"type\": \"Organization\",\n+ \"site_admin\": false\n+ },\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"description\": null,\n+ \"fork\": false,\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"forks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/forks\",\n+ \"keys_url\": \"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\",\n+ \"collaborators_url\": \"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\",\n+ \"teams_url\": \"https://api.github.com/repos/ursa-labs/ursabot/teams\",\n+ \"hooks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/hooks\",\n+ \"issue_events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/events\",\n+ \"assignees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\",\n+ \"branches_url\": \"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\",\n+ \"tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/tags\",\n+ \"blobs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\",\n+ \"git_tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\",\n+ \"git_refs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\",\n+ \"trees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\",\n+ \"statuses_url\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\",\n+ \"languages_url\": \"https://api.github.com/repos/ursa-labs/ursabot/languages\",\n+ \"stargazers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/stargazers\",\n+ \"contributors_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contributors\",\n+ \"subscribers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscribers\",\n+ \"subscription_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscription\",\n+ \"commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\",\n+ \"git_commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\",\n+ \"issue_comment_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\",\n+ \"compare_url\": \"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\",\n+ \"merges_url\": \"https://api.github.com/repos/ursa-labs/ursabot/merges\",\n+ \"archive_url\": \"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\",\n+ \"downloads_url\": \"https://api.github.com/repos/ursa-labs/ursabot/downloads\",\n+ \"issues_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\",\n+ \"pulls_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\",\n+ \"milestones_url\": \"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\",\n+ \"notifications_url\": \"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\",\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\",\n+ \"releases_url\": \"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\",\n+ \"deployments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/deployments\",\n+ \"created_at\": \"2019-02-04T15:40:31Z\",\n+ \"updated_at\": \"2019-04-04T17:49:10Z\",\n+ \"pushed_at\": \"2019-04-05T12:01:40Z\",\n+ \"git_url\": \"git://github.com/ursa-labs/ursabot.git\",\n+ \"ssh_url\": \"[email protected]:ursa-labs/ursabot.git\",\n+ \"clone_url\": \"https://github.com/ursa-labs/ursabot.git\",\n+ \"svn_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"homepage\": null,\n+ \"size\": 898,\n+ \"stargazers_count\": 1,\n+ \"watchers_count\": 1,\n+ \"language\": \"Jupyter Notebook\",\n+ \"has_issues\": true,\n+ \"has_projects\": true,\n+ \"has_downloads\": true,\n+ \"has_wiki\": true,\n+ \"has_pages\": false,\n+ \"forks_count\": 0,\n+ \"mirror_url\": null,\n+ \"archived\": false,\n+ \"disabled\": false,\n+ \"open_issues_count\": 19,\n+ \"license\": null,\n+ \"forks\": 0,\n+ \"open_issues\": 19,\n+ \"watchers\": 1,\n+ \"default_branch\": \"master\"\n+ }\n+ },\n+ \"base\": {\n+ \"label\": \"ursa-labs:master\",\n+ \"ref\": \"master\",\n+ \"sha\": \"a162ad254b589b924db47e057791191b39613fd5\",\n+ \"user\": {\n+ \"login\": \"ursa-labs\",\n+ \"id\": 46514972,\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"gravatar_id\": \"\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"type\": \"Organization\",\n+ \"site_admin\": false\n+ },\n+ \"repo\": {\n+ \"id\": 169101701,\n+ \"node_id\": \"MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=\",\n+ \"name\": \"ursabot\",\n+ \"full_name\": \"ursa-labs/ursabot\",\n+ \"private\": false,\n+ \"owner\": {\n+ \"login\": \"ursa-labs\",\n+ \"id\": 46514972,\n+ \"node_id\": \"MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy\",\n+ \"avatar_url\": \"https://avatars2.githubusercontent.com/u/46514972?v=4\",\n+ \"gravatar_id\": \"\",\n+ \"url\": \"https://api.github.com/users/ursa-labs\",\n+ \"html_url\": \"https://github.com/ursa-labs\",\n+ \"followers_url\": \"https://api.github.com/users/ursa-labs/followers\",\n+ \"following_url\": \"https://api.github.com/users/ursa-labs/following{/other_user}\",\n+ \"gists_url\": \"https://api.github.com/users/ursa-labs/gists{/gist_id}\",\n+ \"starred_url\": \"https://api.github.com/users/ursa-labs/starred{/owner}{/repo}\",\n+ \"subscriptions_url\": \"https://api.github.com/users/ursa-labs/subscriptions\",\n+ \"organizations_url\": \"https://api.github.com/users/ursa-labs/orgs\",\n+ \"repos_url\": \"https://api.github.com/users/ursa-labs/repos\",\n+ \"events_url\": \"https://api.github.com/users/ursa-labs/events{/privacy}\",\n+ \"received_events_url\": \"https://api.github.com/users/ursa-labs/received_events\",\n+ \"type\": \"Organization\",\n+ \"site_admin\": false\n+ },\n+ \"html_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"description\": null,\n+ \"fork\": false,\n+ \"url\": \"https://api.github.com/repos/ursa-labs/ursabot\",\n+ \"forks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/forks\",\n+ \"keys_url\": \"https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}\",\n+ \"collaborators_url\": \"https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}\",\n+ \"teams_url\": \"https://api.github.com/repos/ursa-labs/ursabot/teams\",\n+ \"hooks_url\": \"https://api.github.com/repos/ursa-labs/ursabot/hooks\",\n+ \"issue_events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}\",\n+ \"events_url\": \"https://api.github.com/repos/ursa-labs/ursabot/events\",\n+ \"assignees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}\",\n+ \"branches_url\": \"https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}\",\n+ \"tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/tags\",\n+ \"blobs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}\",\n+ \"git_tags_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}\",\n+ \"git_refs_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}\",\n+ \"trees_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}\",\n+ \"statuses_url\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}\",\n+ \"languages_url\": \"https://api.github.com/repos/ursa-labs/ursabot/languages\",\n+ \"stargazers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/stargazers\",\n+ \"contributors_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contributors\",\n+ \"subscribers_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscribers\",\n+ \"subscription_url\": \"https://api.github.com/repos/ursa-labs/ursabot/subscription\",\n+ \"commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}\",\n+ \"git_commits_url\": \"https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}\",\n+ \"comments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/comments{/number}\",\n+ \"issue_comment_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}\",\n+ \"contents_url\": \"https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}\",\n+ \"compare_url\": \"https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}\",\n+ \"merges_url\": \"https://api.github.com/repos/ursa-labs/ursabot/merges\",\n+ \"archive_url\": \"https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}\",\n+ \"downloads_url\": \"https://api.github.com/repos/ursa-labs/ursabot/downloads\",\n+ \"issues_url\": \"https://api.github.com/repos/ursa-labs/ursabot/issues{/number}\",\n+ \"pulls_url\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}\",\n+ \"milestones_url\": \"https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}\",\n+ \"notifications_url\": \"https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}\",\n+ \"labels_url\": \"https://api.github.com/repos/ursa-labs/ursabot/labels{/name}\",\n+ \"releases_url\": \"https://api.github.com/repos/ursa-labs/ursabot/releases{/id}\",\n+ \"deployments_url\": \"https://api.github.com/repos/ursa-labs/ursabot/deployments\",\n+ \"created_at\": \"2019-02-04T15:40:31Z\",\n+ \"updated_at\": \"2019-04-04T17:49:10Z\",\n+ \"pushed_at\": \"2019-04-05T12:01:40Z\",\n+ \"git_url\": \"git://github.com/ursa-labs/ursabot.git\",\n+ \"ssh_url\": \"[email protected]:ursa-labs/ursabot.git\",\n+ \"clone_url\": \"https://github.com/ursa-labs/ursabot.git\",\n+ \"svn_url\": \"https://github.com/ursa-labs/ursabot\",\n+ \"homepage\": null,\n+ \"size\": 898,\n+ \"stargazers_count\": 1,\n+ \"watchers_count\": 1,\n+ \"language\": \"Jupyter Notebook\",\n+ \"has_issues\": true,\n+ \"has_projects\": true,\n+ \"has_downloads\": true,\n+ \"has_wiki\": true,\n+ \"has_pages\": false,\n+ \"forks_count\": 0,\n+ \"mirror_url\": null,\n+ \"archived\": false,\n+ \"disabled\": false,\n+ \"open_issues_count\": 19,\n+ \"license\": null,\n+ \"forks\": 0,\n+ \"open_issues\": 19,\n+ \"watchers\": 1,\n+ \"default_branch\": \"master\"\n+ }\n+ },\n+ \"_links\": {\n+ \"self\": {\n+ \"href\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26\"\n+ },\n+ \"html\": {\n+ \"href\": \"https://github.com/ursa-labs/ursabot/pull/26\"\n+ },\n+ \"issue\": {\n+ \"href\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26\"\n+ },\n+ \"comments\": {\n+ \"href\": \"https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments\"\n+ },\n+ \"review_comments\": {\n+ \"href\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26/comments\"\n+ },\n+ \"review_comment\": {\n+ \"href\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/comments{/number}\"\n+ },\n+ \"commits\": {\n+ \"href\": \"https://api.github.com/repos/ursa-labs/ursabot/pulls/26/commits\"\n+ },\n+ \"statuses\": {\n+ \"href\": \"https://api.github.com/repos/ursa-labs/ursabot/statuses/2705da2b616b98fa6010a25813c5a7a27456f71d\"\n+ }\n+ },\n+ \"author_association\": \"MEMBER\",\n+ \"merged\": false,\n+ \"mergeable\": true,\n+ \"rebaseable\": true,\n+ \"mergeable_state\": \"unstable\",\n+ \"merged_by\": null,\n+ \"comments\": 5,\n+ \"review_comments\": 0,\n+ \"maintainer_can_modify\": false,\n+ \"commits\": 2,\n+ \"additions\": 1124,\n+ \"deletions\": 0,\n+ \"changed_files\": 7\n+}"+ },+ {+ "sha": "e87b27d2d7b4956d15f7468488b96cf6a06686f4",+ "filename": "ursabot/tests/test_hooks.py",+ "status": "added",+ "additions": 116,+ "deletions": 0,+ "changes": 116,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/test_hooks.py",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/tests/test_hooks.py",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/tests/test_hooks.py?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -0,0 +1,116 @@\n+import json\n+from pathlib import Path\n+from twisted.trial import unittest\n+\n+from buildbot.test.util.misc import TestReactorMixin\n+from buildbot.test.fake.httpclientservice import \\\n+ HTTPClientService as FakeHTTPClientService\n+from buildbot.test.unit.test_www_hooks_github import (\n+ _prepare_request, _prepare_github_change_hook)\n+\n+from ursabot.utils import ensure_deferred\n+from ursabot.hooks import GithubHook\n+\n+\n+class ChangeHookTestCase(unittest.TestCase, TestReactorMixin):\n+\n+ klass = None\n+\n+ @ensure_deferred\n+ async def setUp(self):\n+ self.setUpTestReactor()\n+\n+ assert self.klass is not None\n+ self.hook = _prepare_github_change_hook(self, **{'class': self.klass})\n+ self.master = self.hook.master\n+ self.http = await FakeHTTPClientService.getFakeService(\n+ self.master, self, 'https://api.github.com',\n+ headers={'User-Agent': 'Buildbot'}, debug=False, verify=False)\n+\n+ await self.master.startService()\n+\n+ @ensure_deferred\n+ async def tearDown(self):\n+ await self.master.stopService()\n+\n+ async def trigger(self, event, payload, headers=None, _secret=None):\n+ payload = json.dumps(payload).encode()\n+ request = _prepare_request(event, payload, _secret=_secret,\n+ headers=headers)\n+ await request.test_render(self.hook)\n+ return request\n+\n+ def load_fixture(self, name):\n+ path = Path(__file__).parent / 'fixtures' / f'{name}.json'\n+ with path.open('r') as fp:\n+ return json.load(fp)\n+\n+\n+class TestGithubHook(ChangeHookTestCase):\n+\n+ klass = GithubHook\n+\n+ @ensure_deferred\n+ async def test_ping(self):\n+ await self.trigger('ping', {})\n+ assert len(self.hook.master.data.updates.changesAdded) == 0\n+\n+ @ensure_deferred\n+ async def test_issue_comment_not_mentioning_ursabot(self):\n+ payload = self.load_fixture('issue-comment-not-mentioning-ursabot')\n+ await self.trigger('issue_comment', payload=payload)\n+ assert len(self.hook.master.data.updates.changesAdded) == 0\n+\n+ @ensure_deferred\n+ async def test_issue_comment_by_ursabot(self):\n+ payload = self.load_fixture('issue-comment-by-ursabot')\n+ await self.trigger('issue_comment', payload=payload)\n+ assert len(self.hook.master.data.updates.changesAdded) == 0\n+\n+ @ensure_deferred\n+ async def test_issue_comment_with_empty_command(self):\n+ # responds to the comment\n+ request_json = {'body': 'Unknown command \"\"'}\n+ response_json = ''\n+ self.http.expect('post', '/repos/ursa-labs/ursabot/issues/26/comments',\n+ json=request_json, content_json=response_json)\n+\n+ payload = self.load_fixture('issue-comment-with-empty-command')\n+ await self.trigger('issue_comment', payload=payload)\n+ assert len(self.hook.master.data.updates.changesAdded) == 0\n+\n+ @ensure_deferred\n+ async def test_issue_comment_without_pull_request(self):\n+ # responds to the comment\n+ request_json = {\n+ 'body': 'Ursabot only listens to pull request comments!'\n+ }\n+ response_json = ''\n+ self.http.expect('post', '/repos/ursa-labs/ursabot/issues/19/comments',\n+ json=request_json, content_json=response_json)\n+\n+ payload = self.load_fixture('issue-comment-without-pull-request')\n+ await self.trigger('issue_comment', payload=payload)\n+ assert len(self.hook.master.data.updates.changesAdded) == 0\n+\n+ @ensure_deferred\n+ async def test_issue_comment_build_command(self):\n+ # handle_issue_comment queries the pull request\n+ request_json = self.load_fixture('pull-request-26')\n+ self.http.expect('get', '/repos/ursa-labs/ursabot/pulls/26',\n+ content_json=request_json)\n+ # tigger handle_pull_request which fetches the commit\n+ request_json = self.load_fixture('pull-request-26-commit')\n+ commit = '2705da2b616b98fa6010a25813c5a7a27456f71d'\n+ self.http.expect('get', f'/repos/ursa-labs/ursabot/commits/{commit}',\n+ content_json=request_json)\n+\n+ # then responds to the comment\n+ request_json = {'body': \"I've successfully started builds for this PR\"}\n+ response_json = ''\n+ self.http.expect('post', '/repos/ursa-labs/ursabot/issues/26/comments',\n+ json=request_json, content_json=response_json)\n+\n+ payload = self.load_fixture('issue-comment-build-command')\n+ await self.trigger('issue_comment', payload=payload)\n+ assert len(self.hook.master.data.updates.changesAdded) == 1"+ },+ {+ "sha": "3ff0e88660cf186420e8bc672735e4d446963192",+ "filename": "ursabot/utils.py",+ "status": "added",+ "additions": 10,+ "deletions": 0,+ "changes": 10,+ "blob_url": "https://github.com/ursa-labs/ursabot/blob/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/utils.py",+ "raw_url": "https://github.com/ursa-labs/ursabot/raw/70267dee34884e4b972388e1b30d57f6248c58d0/ursabot/utils.py",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/ursabot/utils.py?ref=70267dee34884e4b972388e1b30d57f6248c58d0",+ "patch": "@@ -0,0 +1,10 @@\n+import functools\n+from twisted.internet import defer\n+\n+\n+def ensure_deferred(f):\n+ @functools.wraps(f)\n+ def wrapper(*args, **kwargs):\n+ result = f(*args, **kwargs)\n+ return defer.ensureDeferred(result)\n+ return wrapper"+ }+]\ No newline at end of filediff --git a/dev/archery/archery/tests/fixtures/pull-request-26.json b/dev/archery/archery/tests/fixtures/pull-request-26.jsonnew file mode 100644index 0000000000..d295afb396--- /dev/null+++ b/dev/archery/archery/tests/fixtures/pull-request-26.json@@ -0,0 +1,329 @@+{+ "url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26",+ "id": 267785552,+ "node_id": "MDExOlB1bGxSZXF1ZXN0MjY3Nzg1NTUy",+ "html_url": "https://github.com/ursa-labs/ursabot/pull/26",+ "diff_url": "https://github.com/ursa-labs/ursabot/pull/26.diff",+ "patch_url": "https://github.com/ursa-labs/ursabot/pull/26.patch",+ "issue_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26",+ "number": 26,+ "state": "open",+ "locked": false,+ "title": "Unittests for GithubHook",+ "user": {+ "login": "kszucs",+ "id": 961747,+ "node_id": "MDQ6VXNlcjk2MTc0Nw==",+ "avatar_url": "https://avatars1.githubusercontent.com/u/961747?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/kszucs",+ "html_url": "https://github.com/kszucs",+ "followers_url": "https://api.github.com/users/kszucs/followers",+ "following_url": "https://api.github.com/users/kszucs/following{/other_user}",+ "gists_url": "https://api.github.com/users/kszucs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/kszucs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/kszucs/subscriptions",+ "organizations_url": "https://api.github.com/users/kszucs/orgs",+ "repos_url": "https://api.github.com/users/kszucs/repos",+ "events_url": "https://api.github.com/users/kszucs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/kszucs/received_events",+ "type": "User",+ "site_admin": false+ },+ "body": "",+ "body_html": "",+ "body_text": "",+ "created_at": "2019-04-05T11:22:15Z",+ "updated_at": "2019-04-05T12:01:40Z",+ "closed_at": null,+ "merged_at": null,+ "merge_commit_sha": "cc5dc3606988b3824be54df779ed2028776113cb",+ "assignee": null,+ "assignees": [],+ "requested_reviewers": [],+ "requested_teams": [],+ "labels": [],+ "milestone": null,+ "commits_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26/commits",+ "review_comments_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26/comments",+ "review_comment_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls/comments{/number}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments",+ "statuses_url": "https://api.github.com/repos/ursa-labs/ursabot/statuses/2705da2b616b98fa6010a25813c5a7a27456f71d",+ "head": {+ "label": "ursa-labs:test-hook",+ "ref": "test-hook",+ "sha": "2705da2b616b98fa6010a25813c5a7a27456f71d",+ "user": {+ "login": "ursa-labs",+ "id": 46514972,+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/ursa-labs",+ "html_url": "https://github.com/ursa-labs",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "type": "Organization",+ "site_admin": false+ },+ "repo": {+ "id": 169101701,+ "node_id": "MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=",+ "name": "ursabot",+ "full_name": "ursa-labs/ursabot",+ "private": false,+ "owner": {+ "login": "ursa-labs",+ "id": 46514972,+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/ursa-labs",+ "html_url": "https://github.com/ursa-labs",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "type": "Organization",+ "site_admin": false+ },+ "html_url": "https://github.com/ursa-labs/ursabot",+ "description": null,+ "fork": false,+ "url": "https://api.github.com/repos/ursa-labs/ursabot",+ "forks_url": "https://api.github.com/repos/ursa-labs/ursabot/forks",+ "keys_url": "https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}",+ "collaborators_url": "https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}",+ "teams_url": "https://api.github.com/repos/ursa-labs/ursabot/teams",+ "hooks_url": "https://api.github.com/repos/ursa-labs/ursabot/hooks",+ "issue_events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/events",+ "assignees_url": "https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}",+ "branches_url": "https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}",+ "tags_url": "https://api.github.com/repos/ursa-labs/ursabot/tags",+ "blobs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}",+ "git_tags_url": "https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}",+ "git_refs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}",+ "trees_url": "https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}",+ "statuses_url": "https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}",+ "languages_url": "https://api.github.com/repos/ursa-labs/ursabot/languages",+ "stargazers_url": "https://api.github.com/repos/ursa-labs/ursabot/stargazers",+ "contributors_url": "https://api.github.com/repos/ursa-labs/ursabot/contributors",+ "subscribers_url": "https://api.github.com/repos/ursa-labs/ursabot/subscribers",+ "subscription_url": "https://api.github.com/repos/ursa-labs/ursabot/subscription",+ "commits_url": "https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}",+ "git_commits_url": "https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/comments{/number}",+ "issue_comment_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}",+ "compare_url": "https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}",+ "merges_url": "https://api.github.com/repos/ursa-labs/ursabot/merges",+ "archive_url": "https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}",+ "downloads_url": "https://api.github.com/repos/ursa-labs/ursabot/downloads",+ "issues_url": "https://api.github.com/repos/ursa-labs/ursabot/issues{/number}",+ "pulls_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}",+ "milestones_url": "https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}",+ "notifications_url": "https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}",+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/labels{/name}",+ "releases_url": "https://api.github.com/repos/ursa-labs/ursabot/releases{/id}",+ "deployments_url": "https://api.github.com/repos/ursa-labs/ursabot/deployments",+ "created_at": "2019-02-04T15:40:31Z",+ "updated_at": "2019-04-04T17:49:10Z",+ "pushed_at": "2019-04-05T12:01:40Z",+ "git_url": "git://github.com/ursa-labs/ursabot.git",+ "ssh_url": "[email protected]:ursa-labs/ursabot.git",+ "clone_url": "https://github.com/ursa-labs/ursabot.git",+ "svn_url": "https://github.com/ursa-labs/ursabot",+ "homepage": null,+ "size": 898,+ "stargazers_count": 1,+ "watchers_count": 1,+ "language": "Jupyter Notebook",+ "has_issues": true,+ "has_projects": true,+ "has_downloads": true,+ "has_wiki": true,+ "has_pages": false,+ "forks_count": 0,+ "mirror_url": null,+ "archived": false,+ "disabled": false,+ "open_issues_count": 19,+ "license": null,+ "forks": 0,+ "open_issues": 19,+ "watchers": 1,+ "default_branch": "master"+ }+ },+ "base": {+ "label": "ursa-labs:master",+ "ref": "master",+ "sha": "a162ad254b589b924db47e057791191b39613fd5",+ "user": {+ "login": "ursa-labs",+ "id": 46514972,+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/ursa-labs",+ "html_url": "https://github.com/ursa-labs",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "type": "Organization",+ "site_admin": false+ },+ "repo": {+ "id": 169101701,+ "node_id": "MDEwOlJlcG9zaXRvcnkxNjkxMDE3MDE=",+ "name": "ursabot",+ "full_name": "ursa-labs/ursabot",+ "private": false,+ "owner": {+ "login": "ursa-labs",+ "id": 46514972,+ "node_id": "MDEyOk9yZ2FuaXphdGlvbjQ2NTE0OTcy",+ "avatar_url": "https://avatars2.githubusercontent.com/u/46514972?v=4",+ "gravatar_id": "",+ "url": "https://api.github.com/users/ursa-labs",+ "html_url": "https://github.com/ursa-labs",+ "followers_url": "https://api.github.com/users/ursa-labs/followers",+ "following_url": "https://api.github.com/users/ursa-labs/following{/other_user}",+ "gists_url": "https://api.github.com/users/ursa-labs/gists{/gist_id}",+ "starred_url": "https://api.github.com/users/ursa-labs/starred{/owner}{/repo}",+ "subscriptions_url": "https://api.github.com/users/ursa-labs/subscriptions",+ "organizations_url": "https://api.github.com/users/ursa-labs/orgs",+ "repos_url": "https://api.github.com/users/ursa-labs/repos",+ "events_url": "https://api.github.com/users/ursa-labs/events{/privacy}",+ "received_events_url": "https://api.github.com/users/ursa-labs/received_events",+ "type": "Organization",+ "site_admin": false+ },+ "html_url": "https://github.com/ursa-labs/ursabot",+ "description": null,+ "fork": false,+ "url": "https://api.github.com/repos/ursa-labs/ursabot",+ "forks_url": "https://api.github.com/repos/ursa-labs/ursabot/forks",+ "keys_url": "https://api.github.com/repos/ursa-labs/ursabot/keys{/key_id}",+ "collaborators_url": "https://api.github.com/repos/ursa-labs/ursabot/collaborators{/collaborator}",+ "teams_url": "https://api.github.com/repos/ursa-labs/ursabot/teams",+ "hooks_url": "https://api.github.com/repos/ursa-labs/ursabot/hooks",+ "issue_events_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/events{/number}",+ "events_url": "https://api.github.com/repos/ursa-labs/ursabot/events",+ "assignees_url": "https://api.github.com/repos/ursa-labs/ursabot/assignees{/user}",+ "branches_url": "https://api.github.com/repos/ursa-labs/ursabot/branches{/branch}",+ "tags_url": "https://api.github.com/repos/ursa-labs/ursabot/tags",+ "blobs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/blobs{/sha}",+ "git_tags_url": "https://api.github.com/repos/ursa-labs/ursabot/git/tags{/sha}",+ "git_refs_url": "https://api.github.com/repos/ursa-labs/ursabot/git/refs{/sha}",+ "trees_url": "https://api.github.com/repos/ursa-labs/ursabot/git/trees{/sha}",+ "statuses_url": "https://api.github.com/repos/ursa-labs/ursabot/statuses/{sha}",+ "languages_url": "https://api.github.com/repos/ursa-labs/ursabot/languages",+ "stargazers_url": "https://api.github.com/repos/ursa-labs/ursabot/stargazers",+ "contributors_url": "https://api.github.com/repos/ursa-labs/ursabot/contributors",+ "subscribers_url": "https://api.github.com/repos/ursa-labs/ursabot/subscribers",+ "subscription_url": "https://api.github.com/repos/ursa-labs/ursabot/subscription",+ "commits_url": "https://api.github.com/repos/ursa-labs/ursabot/commits{/sha}",+ "git_commits_url": "https://api.github.com/repos/ursa-labs/ursabot/git/commits{/sha}",+ "comments_url": "https://api.github.com/repos/ursa-labs/ursabot/comments{/number}",+ "issue_comment_url": "https://api.github.com/repos/ursa-labs/ursabot/issues/comments{/number}",+ "contents_url": "https://api.github.com/repos/ursa-labs/ursabot/contents/{+path}",+ "compare_url": "https://api.github.com/repos/ursa-labs/ursabot/compare/{base}...{head}",+ "merges_url": "https://api.github.com/repos/ursa-labs/ursabot/merges",+ "archive_url": "https://api.github.com/repos/ursa-labs/ursabot/{archive_format}{/ref}",+ "downloads_url": "https://api.github.com/repos/ursa-labs/ursabot/downloads",+ "issues_url": "https://api.github.com/repos/ursa-labs/ursabot/issues{/number}",+ "pulls_url": "https://api.github.com/repos/ursa-labs/ursabot/pulls{/number}",+ "milestones_url": "https://api.github.com/repos/ursa-labs/ursabot/milestones{/number}",+ "notifications_url": "https://api.github.com/repos/ursa-labs/ursabot/notifications{?since,all,participating}",+ "labels_url": "https://api.github.com/repos/ursa-labs/ursabot/labels{/name}",+ "releases_url": "https://api.github.com/repos/ursa-labs/ursabot/releases{/id}",+ "deployments_url": "https://api.github.com/repos/ursa-labs/ursabot/deployments",+ "created_at": "2019-02-04T15:40:31Z",+ "updated_at": "2019-04-04T17:49:10Z",+ "pushed_at": "2019-04-05T12:01:40Z",+ "git_url": "git://github.com/ursa-labs/ursabot.git",+ "ssh_url": "[email protected]:ursa-labs/ursabot.git",+ "clone_url": "https://github.com/ursa-labs/ursabot.git",+ "svn_url": "https://github.com/ursa-labs/ursabot",+ "homepage": null,+ "size": 898,+ "stargazers_count": 1,+ "watchers_count": 1,+ "language": "Jupyter Notebook",+ "has_issues": true,+ "has_projects": true,+ "has_downloads": true,+ "has_wiki": true,+ "has_pages": false,+ "forks_count": 0,+ "mirror_url": null,+ "archived": false,+ "disabled": false,+ "open_issues_count": 19,+ "license": null,+ "forks": 0,+ "open_issues": 19,+ "watchers": 1,+ "default_branch": "master"+ }+ },+ "_links": {+ "self": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26"+ },+ "html": {+ "href": "https://github.com/ursa-labs/ursabot/pull/26"+ },+ "issue": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/issues/26"+ },+ "comments": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/issues/26/comments"+ },+ "review_comments": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26/comments"+ },+ "review_comment": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/pulls/comments{/number}"+ },+ "commits": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/pulls/26/commits"+ },+ "statuses": {+ "href": "https://api.github.com/repos/ursa-labs/ursabot/statuses/2705da2b616b98fa6010a25813c5a7a27456f71d"+ }+ },+ "author_association": "MEMBER",+ "merged": false,+ "mergeable": true,+ "rebaseable": true,+ "mergeable_state": "unstable",+ "merged_by": null,+ "comments": 5,+ "review_comments": 0,+ "maintainer_can_modify": false,+ "commits": 2,+ "additions": 1124,+ "deletions": 0,+ "changed_files": 7+}\ No newline at end of filediff --git a/dev/archery/archery/tests/test_bot.py b/dev/archery/archery/tests/test_bot.pynew file mode 100644index 0000000000..1f552761b8--- /dev/null+++ b/dev/archery/archery/tests/test_bot.py@@ -0,0 +1,242 @@+# Licensed to the Apache Software Foundation (ASF) under one+# or more contributor license agreements. See the NOTICE file+# distributed with this work for additional information+# regarding copyright ownership. The ASF licenses this file+# to you under the Apache License, Version 2.0 (the+# "License"); you may not use this file except in compliance+# with the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing,+# software distributed under the License is distributed on an+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+# KIND, either express or implied. See the License for the+# specific language governing permissions and limitations+# under the License.++import json+from pathlib import Path+from unittest.mock import Mock++import pytest+import textwrap+import responses as rsps+import click+from ruamel.yaml import YAML++from archery.bot import (+ CommentBot, CommandError, CrossbowCommentFormatter, group+)+++def responses():+ with rsps.RequestsMock() as mock:+ yield mock+++def load_fixture(name):+ path = Path(__file__).parent / 'fixtures' / name+ with path.open('r') as fp:+ if name.endswith('.json'):+ return json.load(fp)+ elif name.endswith('.yaml'):+ yaml = YAML()+ return yaml.load(fp)+ else:+ return fp.read()+++def github_url(path):+ return 'https://api.github.com:443/{}'.format(path.strip('/'))+++@group()+def custom_handler():+ pass+++@custom_handler.command()+def extra(obj):+ return obj+++@custom_handler.command()[email protected]('--force', '-f', is_flag=True)+def build(force):+ return force+++@custom_handler.command()[email protected]('--name', required=True)+def benchmark(name):+ return name+++def test_click_based_commands():+ assert custom_handler('build') is False+ assert custom_handler('build -f') is True++ assert custom_handler('benchmark --name strings') == 'strings'+ with pytest.raises(CommandError):+ assert custom_handler('benchmark')++ assert custom_handler('extra', extra='data') == {'extra': 'data'}+++def test_crossbow_comment_formatter():+ job = load_fixture('crossbow-job.yaml')+ msg = load_fixture('crossbow-success-message.md')++ formatter = CrossbowCommentFormatter(crossbow_repo='ursa-labs/crossbow')+ response = formatter.render(job)+ expected = msg.format(+ repo='ursa-labs/crossbow',+ branch='ursabot-1',+ revision='f766a1d615dd1b7ee706d05102e579195951a61c',+ status='has been succeeded.'+ )+ assert response == textwrap.dedent(expected).strip()++[email protected]('fixture_name', [+ # the bot is not mentiond, nothing to do+ 'event-issue-comment-not-mentioning-ursabot.json',+ # don't respond to itself, it prevents recursive comment storms!+ 'event-issue-comment-by-ursabot.json',+ # non-authorized user sent the comment, do not respond+ 'event-issue-comment-by-non-authorized-user.json',+])+def test_noop_events(fixture_name):+ payload = load_fixture(fixture_name)++ handler = Mock()+ bot = CommentBot(name='ursabot', token='', handler=handler)+ bot.handle('issue_comment', payload)++ handler.assert_not_called()+++def test_issue_comment_without_pull_request(responses):+ responses.add(+ responses.GET,+ github_url('/repositories/169101701/issues/19'),+ json=load_fixture('issue-19.json'),+ status=200+ )+ responses.add(+ responses.GET,+ github_url('repos/ursa-labs/ursabot/pulls/19'),+ json={},+ status=404+ )+ responses.add(+ responses.POST,+ github_url('/repos/ursa-labs/ursabot/issues/19/comments'),+ json={}+ )++ def handler(command, **kwargs):+ pass++ payload = load_fixture('event-issue-comment-without-pull-request.json')+ bot = CommentBot(name='ursabot', token='', handler=handler)+ bot.handle('issue_comment', payload)++ post = responses.calls[2]+ assert json.loads(post.request.body) == {+ 'body': "The comment bot only listens to pull request comments!"+ }+++def test_respond_with_usage(responses):+ responses.add(+ responses.GET,+ github_url('/repositories/169101701/issues/26'),+ json=load_fixture('issue-26.json'),+ status=200+ )+ responses.add(+ responses.GET,+ github_url('/repos/ursa-labs/ursabot/pulls/26'),+ json=load_fixture('pull-request-26.json'),+ status=200+ )+ responses.add(+ responses.GET,+ github_url('/repos/ursa-labs/ursabot/issues/comments/480243811'),+ json=load_fixture('issue-comment-480243811.json')+ )+ responses.add(+ responses.POST,+ github_url('/repos/ursa-labs/ursabot/issues/26/comments'),+ json={}+ )++ def handler(command, **kwargs):+ raise CommandError('test-usage')++ payload = load_fixture('event-issue-comment-with-empty-command.json')+ bot = CommentBot(name='ursabot', token='', handler=handler)+ bot.handle('issue_comment', payload)++ post = responses.calls[3]+ assert json.loads(post.request.body) == {'body': '```\ntest-usage\n```'}++[email protected](('command', 'reaction'), [+ ('@ursabot build', '+1'),+ ('@ursabot listen', '-1'),+])+def test_issue_comment_with_commands(responses, command, reaction):+ responses.add(+ responses.GET,+ github_url('/repositories/169101701/issues/26'),+ json=load_fixture('issue-26.json'),+ status=200+ )+ responses.add(+ responses.GET,+ github_url('/repos/ursa-labs/ursabot/pulls/26'),+ json=load_fixture('pull-request-26.json'),+ status=200+ )+ responses.add(+ responses.GET,+ github_url('/repos/ursa-labs/ursabot/issues/comments/480248726'),+ json=load_fixture('issue-comment-480248726.json')+ )+ responses.add(+ responses.POST,+ github_url(+ '/repos/ursa-labs/ursabot/issues/comments/480248726/reactions'+ ),+ json={}+ )++ def handler(command, **kwargs):+ if command == 'build':+ return True+ else:+ raise ValueError('Only `build` command is supported.')++ payload = load_fixture('event-issue-comment-build-command.json')+ payload["comment"]["body"] = command++ bot = CommentBot(name='ursabot', token='', handler=handler)+ bot.handle('issue_comment', payload)++ post = responses.calls[3]+ assert json.loads(post.request.body) == {'content': reaction}+++# TODO(kszucs): properly mock it+# def test_crossbow_submit():+# from click.testing import CliRunner+# runner = CliRunner()+# result = runner.invoke(+# bot, ['crossbow', 'submit', '-g', 'wheel', '--dry-run']+# )+# assert result.exit_code == 0diff --git a/dev/archery/archery/utils/crossbow.py b/dev/archery/archery/utils/crossbow.pynew file mode 100644index 0000000000..f28b976246--- /dev/null+++ b/dev/archery/archery/utils/crossbow.py@@ -0,0 +1,23 @@+# Licensed to the Apache Software Foundation (ASF) under one+# or more contributor license agreements. See the NOTICE file+# distributed with this work for additional information+# regarding copyright ownership. The ASF licenses this file+# to you under the Apache License, Version 2.0 (the+# "License"); you may not use this file except in compliance+# with the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing,+# software distributed under the License is distributed on an+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+# KIND, either express or implied. See the License for the+# specific language governing permissions and limitations+# under the License.++from .command import Command, default_bin+++class Crossbow(Command):+ def __init__(self, crossbow_bin=None):+ self.bin = default_bin(crossbow_bin, "arrow/dev/tasks/crossbow.py")diff --git a/dev/archery/requirements-lint.txt b/dev/archery/requirements-lint.txtnew file mode 100644index 0000000000..b1c02f6d99--- /dev/null+++ b/dev/archery/requirements-lint.txt@@ -0,0 +1,2 @@+flake8+cmake_format==0.5.2\ No newline at end of filediff --git a/dev/archery/requirements.txt b/dev/archery/requirements.txtnew file mode 100644index 0000000000..7105030d0c--- /dev/null+++ b/dev/archery/requirements.txt@@ -0,0 +1,3 @@+click+pygithub+ruamel.yaml\ No newline at end of filediff --git a/dev/archery/setup.py b/dev/archery/setup.pyindex 40263a7713..fac4661819 100644--- a/dev/archery/setup.py+++ b/dev/archery/setup.py@@ -32,7 +32,7 @@ setup(maintainer='Arrow Developers',maintainer_email='[email protected]',packages=['archery'],- install_requires=['click'],+ install_requires=['click', 'pygithub'],entry_points='''[console_scripts]archery=archery.cli:archerydiff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txtindex 28a8960ab0..6779db07db 100644--- a/dev/release/rat_exclude_files.txt+++ b/dev/release/rat_exclude_files.txt@@ -40,6 +40,8 @@ cpp/src/plasma/thirdparty/dlmalloc.ccpp/thirdparty/flatbuffers/include/flatbuffers/base.hcpp/thirdparty/flatbuffers/include/flatbuffers/flatbuffers.hcpp/thirdparty/flatbuffers/include/flatbuffers/stl_emulation.h+dev/archery/requirements*.txt+dev/archery/archery/tests/fixtures/*dev/release/rat_exclude_files.txtdev/tasks/homebrew-formulae/apache-arrow.rbdev/tasks/linux-packages/apache-arrow-archive-keyring/debian/apache-arrow-archive-keyring.install